[BACK]Return to ox_pathfinder.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / util

Diff for /OpenXM/src/util/ox_pathfinder.c between version 1.12 and 1.13

version 1.12, 2003/12/03 08:58:35 version 1.13, 2003/12/03 13:38:39
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/util/ox_pathfinder.c,v 1.11 2003/12/03 03:21:16 takayama Exp $ */  /* $OpenXM: OpenXM/src/util/ox_pathfinder.c,v 1.12 2003/12/03 08:58:35 takayama Exp $ */
 /* Moved from misc-2003/07/cygwin/test.c */  /* Moved from misc-2003/07/cygwin/test.c */
   
 #include <stdio.h>  #include <stdio.h>
Line 111  static void myforkwait() {
Line 111  static void myforkwait() {
   int status;    int status;
   int pid;    int pid;
   int i,j;    int i,j;
   signal(SIGCHLD,SIG_IGN);    /* signal(SIGCHLD,SIG_IGN);  It is not allowed in posix */
   pid = wait(&status);    pid = wait(&status);
   fprintf(stderr,"Child process %d is exiting.\n",pid);    fprintf(stderr,"Child process %d is exiting.\n",pid);
     if (pid < 0) {
           perror("wait");
     }
   for (i=0; i<Myforkcp; i++) {    for (i=0; i<Myforkcp; i++) {
     if (Myforkchildren[i]  == pid) {      if (Myforkchildren[i]  == pid) {
       for (j=i; j<Myforkcp-1; j++) {        for (j=i; j<Myforkcp-1; j++) {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>