Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!mailrus!uflorida!stat!sun13!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.questions Subject: Re: what the kill() system call should do?? Message-ID: <14169@hydra.gatech.EDU> Date: 27 Sep 90 00:55:07 GMT References: <25784.2700d355@kuhub.cc.ukans.edu> Organization: Georgia Institute of Technology Lines: 26 in article <25784.2700d355@kuhub.cc.ukans.edu>, jian@kuhub.cc.ukans.edu says: > switch( pid = fork()) { > case -1: > perror("for()"); > exit(1); > case 0: > ppid = getpid(); Try getppid(). > child_process(ppid); > > default: > signal(SIGUSR1, catch_usr1); Might want to add: wait(0); sleep(5); -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu