git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
128cf58
)
Define the WEXITSTATUS macro for systems that don't have it.
author
David Dykstra
<dwd@samba.org>
Wed, 29 Dec 1999 21:11:57 +0000
(21:11 +0000)
committer
David Dykstra
<dwd@samba.org>
Wed, 29 Dec 1999 21:11:57 +0000
(21:11 +0000)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index 3cb80eb9d1c17c324f176b7830d4c186d0fda55f..f67dff0e19449df8e7e09042ef52ed8fafc7cff8 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-874,6
+874,9
@@
char *timestring(time_t t)
/****************************************************************************
like waitpid but does the WEXITSTATUS
****************************************************************************/
/****************************************************************************
like waitpid but does the WEXITSTATUS
****************************************************************************/
+#ifndef WEXITSTATUS
+#define WEXITSTATUS(stat) ((int)(((stat)>>8)&0xFF))
+#endif
void wait_process(pid_t pid, int *status)
{
waitpid(pid, status, 0);
void wait_process(pid_t pid, int *status)
{
waitpid(pid, status, 0);