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
simonmar@microsoft.com
Tue, 7 Jan 2003 16:14:21 -0000
> > 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.
>=20
> [Written on the assumption that you haven't gotten to waitpid yet]
>=20
> 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. =20
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