mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
* sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
really work anyway.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2007-01-16 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
|
||||||
|
really work anyway.
|
||||||
|
|
||||||
2007-01-15 Ulrich Drepper <drepper@redhat.com>
|
2007-01-15 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* nscd/connections.c (servinfo): Renamed to reqinfo. Change all
|
* nscd/connections.c (servinfo): Renamed to reqinfo. Change all
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991-2000, 2002, 2003, 2005 Free Software Foundation, Inc.
|
/* Copyright (C) 1991-2000,2002,2003,2005,2007 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -143,27 +143,11 @@ do_system (const char *line)
|
|||||||
else
|
else
|
||||||
/* Parent side. */
|
/* Parent side. */
|
||||||
{
|
{
|
||||||
#ifdef NO_WAITPID
|
|
||||||
pid_t child;
|
|
||||||
do
|
|
||||||
{
|
|
||||||
child = __wait (&status);
|
|
||||||
if (child <= -1 && errno != EINTR)
|
|
||||||
{
|
|
||||||
status = -1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
/* Note that pid cannot be <= -1 and therefore the loop continues
|
|
||||||
when __wait returned with EINTR. */
|
|
||||||
}
|
|
||||||
while (child != pid);
|
|
||||||
#else
|
|
||||||
/* Note the system() is a cancellation point. But since we call
|
/* Note the system() is a cancellation point. But since we call
|
||||||
waitpid() which itself is a cancellation point we do not
|
waitpid() which itself is a cancellation point we do not
|
||||||
have to do anything here. */
|
have to do anything here. */
|
||||||
if (TEMP_FAILURE_RETRY (__waitpid (pid, &status, 0)) != pid)
|
if (TEMP_FAILURE_RETRY (__waitpid (pid, &status, 0)) != pid)
|
||||||
status = -1;
|
status = -1;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CLEANUP_HANDLER
|
#ifdef CLEANUP_HANDLER
|
||||||
|
Reference in New Issue
Block a user