From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-12 12:44:09 PST Xref: gmd.de comp.os.vms:42315 comp.sys.dec:14297 comp.unix.advocacy:1132 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!newsrelay.iastate.edu!news.iastate.edu!john From: john@iastate.edu (John Hascall) Newsgroups: comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Does UNIX do async i/o? Date: 12 Mar 1994 20:44:09 GMT Organization: Iowa State University, Ames, Iowa (USA) Distribution: world Message-ID: <2lt9ip$4c2@news.iastate.edu> References: <1994Feb26.204059.4068@mixcom.mixcom.com> <2lrgl0$nav@gap.cco.caltech.edu> <2lt8e4$ia2@genesis.ait.psu.edu> NNTP-Posting-Host: pooh.cc.iastate.edu Bryan J Jensen wrote: }Then I found I had to create some processes. UNIX requires the }parent process to do a "wait()" on the child process before it will }terminate a child. Since I can't wait around for processes to }finish, I need some mechanism to let me know when a process }terminates so that I can safely do the wait to complete its rundown. oldfunc = signal(SIGCHLD, functiontocall); or perhaps you would prefer an occasional: pid = wait3(&exit_status_var, WNOHANG, &resource_usage_var) John