12 lines
516 B
Diff
12 lines
516 B
Diff
diff -Nurp libcap-2.63-orig/psx/psx.c libcap-2.63/psx/psx.c
|
|
--- libcap-2.63-orig/psx/psx.c 2022-01-24 01:30:38.000000000 +0100
|
|
+++ libcap-2.63/psx/psx.c 2023-05-16 16:05:14.436726170 +0200
|
|
@@ -492,7 +492,7 @@ int __wrap_pthread_create(pthread_t *thr
|
|
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);
|