On Fri, Jun 28, 2019 at 10:24 PM Shiro Kawai <xxxxxx@gmail.com> wrote:

It appears that if you kick a subprocess using spawn()-family with spawn/nowait
or spawn/detach, there's no way to get the info of child process pid.  The spec
says they return unspecified exact integer.  Besides, on Windows you need
a process handle instead of pid (although this is POSIX srfi, swpan-procedures
do mention Windows).

Since the returned value is intrinsically not portable, I decided not to specify what it is, so I have weakened the return values in these cases from "unspecified exact integer" to "unspecified object".  Particular implementations may choose to return a process handle on Windows.


John Cowan          http://vrici.lojban.org/~cowan        xxxxxx@ccil.org
It's the old, old story.  Droid meets droid.  Droid becomes chameleon.
Droid loses chameleon, chameleon becomes blob, droid gets blob back
again.  It's a classic tale.  --Kryten, Red Dwarf