Refuse to signal a subprocess that has terminated.
authorTaylor R Campbell <campbell@mumble.net>
Mon, 11 Oct 2010 02:47:43 +0000 (02:47 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Mon, 11 Oct 2010 02:47:43 +0000 (02:47 +0000)
commitda4e4a0e05d86e197ed8cc248a81bb2713f72662
treea5aa839f89fbfb93a18e9acf3dbc9592949b4ccd
parent8059c349d549c01d5ca0f085581dc09e5d20a7bf
Refuse to signal a subprocess that has terminated.

Once Scheme has called wait*(2) on a process that has terminated, its
pid may be recycled, so attempting to send a signal to it may cause a
signal to be sent to some random process!

New tests for subprocess support include a regression test for this.
src/microcode/errors.h
src/microcode/osscheme.c
src/microcode/osscheme.h
src/microcode/uxproc.c
src/runtime/runtime.pkg
src/runtime/uerror.scm
tests/runtime/test-process.scm [new file with mode: 0644]