Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!mailrus!csd4.milw.wisc.edu!bbn!rohlicek@bbn.com From: rohlicek@bbn.com (Robin Rohlicek) Newsgroups: comp.unix.wizards Subject: rusage of an active child process? Message-ID: <33999@bbn.COM> Date: 1 Jan 89 22:21:50 GMT Sender: news@bbn.COM Lines: 17 What is good way to obtain an rusage structure for an active child process. Both getrusage(2) and wait3(2) are most useful after the child has terminated. The closest I've been able to get from the documentation is kill(child_pid,SIGSTOP); pid = wait3(&status,WNOHANG|WUNTRACED,&rusage); kill(child_pid,SIGCONT); which seems to work. It seems that it should be unnecessary to stop the child, or is this something fundamental about the way unix handles processes? Any pointers would be appreciated... Thanks, Robin Rohlicek.