=================================================================== RCS file: /home/cvs/OpenXM/src/kxx/ox100start.c,v retrieving revision 1.7 retrieving revision 1.9 diff -u -p -r1.7 -r1.9 --- OpenXM/src/kxx/ox100start.c 2006/01/26 08:36:50 1.7 +++ OpenXM/src/kxx/ox100start.c 2020/10/07 07:47:23 1.9 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/kxx/ox100start.c,v 1.6 2004/02/28 12:27:15 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kxx/ox100start.c,v 1.8 2016/03/31 05:27:34 takayama Exp $ */ /* Moved from misc-2003/07/cygwin/test.c */ #include #include @@ -9,7 +9,9 @@ #include #include #include +#include #include "ox_pathfinder.h" +#include "mysig.h" static void usage(void); static int forkExec(char **argv); @@ -21,7 +23,7 @@ int Quiet = 0; static int EngineLogToStdout = 0; extern char **environ; -main(int argc,char *argv[]) { +void main(int argc,char *argv[]) { char *s; char s2[1024]; char buf[1024]; @@ -82,7 +84,7 @@ static void myforkwait() { int status; int pid; int i,j; - signal(SIGCHLD,SIG_IGN); + mysignal(SIGCHLD,SIG_IGN); pid = wait(&status); fprintf(stderr,"Child process %d is exiting.\n",pid); for (i=0; i 0) Myforkcp--; } } - signal(SIGCHLD,myforkwait); + mysignal(SIGCHLD,myforkwait); } static void usage() { @@ -116,7 +118,7 @@ static int forkExec(char **argv) { if (m&2) { /* Do not call singal to turn around a trouble on cygwin. BUG. */ }else{ - signal(SIGCHLD,myforkwait); /* to kill Zombie */ + mysignal(SIGCHLD,myforkwait); /* to kill Zombie */ } Myforkchildren[Myforkcp++] = pid; if (Myforkcp >= MYFORKCP_SIZE-1) {