This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] waitpid(2) WAIT_* macros
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-patches <cygwin-patches at cygwin dot com>
- Date: Wed, 05 Dec 2012 23:20:29 -0600
- Subject: [PATCH] waitpid(2) WAIT_* macros
WAIT_ANY and WAIT_MYPGRP are defined by glibc[1] as symbolic constants
for special values in the first argument to waitpid(2). Patch attached.
Yaakov
[1]
http://www.gnu.org/software/libc/manual/html_node/Process-Completion.html
2012-12-05 Yaakov Selkowitz <yselkowitz@...>
* include/cygwin/wait.h (WAIT_ANY): Define.
(WAIT_MYPGRP): Define.
Index: include/cygwin/wait.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/include/cygwin/wait.h,v
retrieving revision 1.3
diff -u -p -r1.3 wait.h
--- include/cygwin/wait.h 6 Oct 2011 16:02:35 -0000 1.3
+++ include/cygwin/wait.h 6 Dec 2012 05:15:03 -0000
@@ -11,6 +11,9 @@ details. */
#ifndef _CYGWIN_WAIT_H
#define _CYGWIN_WAIT_H
+#define WAIT_ANY (pid_t)-1
+#define WAIT_MYPGRP (pid_t)0
+
#define WNOHANG 1
#define WUNTRACED 2
#define WCONTINUED 8