mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-12 19:04:54 +03:00
2004-09-04 Jakub Jelinek <jakub@redhat.com>
* tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||||
|
|
||||||
@@ -357,8 +357,11 @@ tf_waitid (void *arg)
|
|||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef WEXITED
|
||||||
|
# define WEXITED 0
|
||||||
|
#endif
|
||||||
siginfo_t si;
|
siginfo_t si;
|
||||||
int s = waitid (P_PID, pid, &si, 0);
|
int s = waitid (P_PID, pid, &si, WEXITED);
|
||||||
|
|
||||||
printf ("%s: waitid returns with %d (%s)\n", __FUNCTION__, s,
|
printf ("%s: waitid returns with %d (%s)\n", __FUNCTION__, s,
|
||||||
strerror (errno));
|
strerror (errno));
|
||||||
|
Reference in New Issue
Block a user