mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* sysdeps/unix/sysv/linux/system.c: If compiled without threads don't do anything fancy. * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_define_initialized_recursive.
This commit is contained in:
@ -37,19 +37,22 @@
|
||||
INLINE_SYSCALL (clone, 3, CLONE_PARENT_SETTID | SIGCHLD, 0, &pid)
|
||||
#endif
|
||||
|
||||
#ifdef _LIBC_REENTRANT
|
||||
static void cancel_handler (void *arg);
|
||||
|
||||
#define CLEANUP_HANDLER \
|
||||
# define CLEANUP_HANDLER \
|
||||
__libc_cleanup_region_start (1, cancel_handler, &pid)
|
||||
|
||||
#define CLEANUP_RESET \
|
||||
# define CLEANUP_RESET \
|
||||
__libc_cleanup_region_end (0)
|
||||
#endif
|
||||
|
||||
|
||||
/* Linux has waitpid(), so override the generic unix version. */
|
||||
#include <sysdeps/posix/system.c>
|
||||
|
||||
|
||||
#ifdef _LIBC_REENTRANT
|
||||
/* The cancellation handler. */
|
||||
static void
|
||||
cancel_handler (void *arg)
|
||||
@ -71,3 +74,4 @@ cancel_handler (void *arg)
|
||||
|
||||
DO_UNLOCK ();
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user