chiark
/
gitweb
/
~ian
/
userv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Portability fixes.
[userv.git]
/
overlord.c
diff --git
a/overlord.c
b/overlord.c
index 7f66c4ea354307512365fc9f1cdaf7e7fcaf96d4..241bb0de60d00a2d1fc19b85e6cff15cc57e5739 100644
(file)
--- a/
overlord.c
+++ b/
overlord.c
@@
-19,7
+19,6
@@
* Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
* Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include <wait.h>
#include <unistd.h>
#include <signal.h>
#include <syslog.h>
#include <unistd.h>
#include <signal.h>
#include <syslog.h>
@@
-28,6
+27,7
@@
#include <stdio.h>
#include <assert.h>
#include <fnmatch.h>
#include <stdio.h>
#include <assert.h>
#include <fnmatch.h>
+#include <sys/wait.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
@@
-94,7
+94,7
@@
static void sighandler_chld(int x) {
(long)r,status);
} else if (WEXITSTATUS(status)>12) {
if (WEXITSTATUS(status)>24)
(long)r,status);
} else if (WEXITSTATUS(status)>12) {
if (WEXITSTATUS(status)>24)
- syslog(LOG_ERR,"call pid %ld exited with status %
l
d >24",
+ syslog(LOG_ERR,"call pid %ld exited with status %d >24",
(long)r,WEXITSTATUS(status));
checkstalepipes();
}
(long)r,WEXITSTATUS(status));
checkstalepipes();
}