version 1.22, 2004/02/25 23:14:35 |
version 1.23, 2004/02/28 13:39:42 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/Kan/ext.c,v 1.21 2003/12/06 02:49:22 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/Kan/ext.c,v 1.22 2004/02/25 23:14:35 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
#include <errno.h> |
#include <errno.h> |
#include "ox_pathfinder.h" |
#include "ox_pathfinder.h" |
|
|
|
extern int Quiet; |
extern char **environ; |
extern char **environ; |
|
|
#define MYCP_SIZE 100 |
#define MYCP_SIZE 100 |
Line 28 static void mywait() { |
|
Line 29 static void mywait() { |
|
int i,j; |
int i,j; |
/* signal(SIGCHLD,SIG_IGN); */ |
/* signal(SIGCHLD,SIG_IGN); */ |
pid = wait(&status); |
pid = wait(&status); |
fprintf(stderr,"Child process %d is exiting.\n",pid); |
if (!Quiet) fprintf(stderr,"Child process %d is exiting.\n",pid); |
for (i=0; i<Mycp; i++) { |
for (i=0; i<Mycp; i++) { |
if (Mychildren[i] == pid) { |
if (Mychildren[i] == pid) { |
for (j=i; j<Mycp-1; j++) { |
for (j=i; j<Mycp-1; j++) { |