mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* sysdeps/posix/system.c (do_system): Add support for installation of cancellation handlers. * sysdeps/unix/sysv/linux/i386/system.c: New file. * stdlib/Makefile (tests): Add tst-system. * stdlib/tst-system.c: New file.
This commit is contained in:
@ -112,7 +112,15 @@ do_system (const char *line)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CLEANUP_HANDLER
|
||||
CLEANUP_HANDLER;
|
||||
#endif
|
||||
|
||||
#ifdef FORK
|
||||
pid = FORK ();
|
||||
#else
|
||||
pid = __fork ();
|
||||
#endif
|
||||
if (pid == (pid_t) 0)
|
||||
{
|
||||
/* Child side. */
|
||||
@ -158,6 +166,10 @@ do_system (const char *line)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CLEANUP_HANDLER
|
||||
CLEANUP_RESET;
|
||||
#endif
|
||||
|
||||
save = errno;
|
||||
DO_LOCK ();
|
||||
if ((SUB_REF () == 0
|
||||
|
Reference in New Issue
Block a user