RE: cvs commit: fptools/hslibs/posix Makefile PosixDB.lhs PosixProcEnv.lhs PosixTTY.lhs fptools/libraries/unix/System Posix.hs fptools/libraries/unix/System/Posix Terminal.hsc Time.hsc User.hsc Files.hsc IO.hsc Process.hsc Unistd.hsc ...
"Simon Marlow" <[email protected]> Tue, 7 Jan 2003 16:14:21 -0000
| Newsgroups | gmane.comp.lang.haskell.cvs.hslibs |
|---|---|
| Message-ID | <9584A4A864BD8548932F2F88EB30D1C60B37A997@tvp-msg-01.europe.corp.microsoft.com> |
> > We're now about 95% complete w.r.t. the old posix library. I've > > identified the reminaing bits to do in System/Posix.hs. > > [Written on the assumption that you haven't gotten to waitpid yet] > > btw When using popen, I ran into problems getting hold of process ids > because I seemed to be falling somewhere in the gap between the two > libraries. After a bunch of searching for the Right Way, I ended up > writing the attached code. Does getProcessStatus do what you want? (previously in Posix, now in System.Posix.Process). Admittedly the name might be a bit misleading if you're looking for a waitpid wrapper. I intend the documentation for the new library to contain some kind of a mapping from the C functionality to the appropriate Haskell equivalent to make tracking down these things easier. Cheers, Simon