diff --git a/psx/CHANGELOG.md b/psx/CHANGELOG.md index a1afa33..9fcf8bf 100644 --- a/psx/CHANGELOG.md +++ b/psx/CHANGELOG.md @@ -1,5 +1,9 @@ # Revision history for psx +## 0.1.2.0 -- YYYY-mm-dd + +* Update vendored sources. + ## 0.1.1.1 -- 2023-02-28 * Remove `-Wl,-undefined,__wrap_sigfillset` from link options. diff --git a/psx/cbits/psx/License b/psx/cbits/psx/License index 2645a87..39108c2 100644 --- a/psx/cbits/psx/License +++ b/psx/cbits/psx/License @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only */ + Unless otherwise *explicitly* stated, the following text describes the licensed conditions under which the contents of this libcap/psx release may be used and distributed. diff --git a/psx/cbits/psx/psx.c b/psx/cbits/psx/psx.c index d9c0485..65eb2aa 100644 --- a/psx/cbits/psx/psx.c +++ b/psx/cbits/psx/psx.c @@ -516,7 +516,7 @@ int __wrap_pthread_create(pthread_t *thread, const pthread_attr_t *attr, pthread_sigmask(SIG_BLOCK, &sigbit, NULL); int ret = __real_pthread_create(thread, attr, _psx_start_fn, starter); - if (ret == -1) { + if (ret > 0) { psx_new_state(_PSX_CREATE, _PSX_IDLE); memset(starter, 0, sizeof(*starter)); free(starter);