rem: if (pid == 0 && mgrPid != -1) { mgrPid = -1; close(mgrPipe[0]); close(mgrPipe[1]);
add: if (pid == 0) {    if (mgrPid != -1) { mgrPid = -1; close(mgrPipe[0]); close(mgrPipe[1]); }    sPtr = GETSPROC(); sPtr->pid = sPtr->startPid = getpid();
context: fork(void){    extern pid_t _fork(void);    pid_t pid;    pid = _fork();    if (pid == 0 && mgrPid != -1) {    	mgrPid = -1;    	close(mgrPipe[0]);    	close(mgrPipe[1]);    }    return pid;}