test-skeleton: Kill any child process's offspring
authorMaciej W. Rozycki <macro@codesourcery.com>
Mon, 30 Jun 2014 19:05:34 +0000 (20:05 +0100)
committerMaciej W. Rozycki <macro@codesourcery.com>
Mon, 30 Jun 2014 19:11:56 +0000 (20:11 +0100)
commitd7a05d0728924b25c5ece7fa41f79fe4b073d92c
tree67981d165ed01d2d2301383363b33f9472a34c1a
parent46f1d8a6b54fc7ed7a7047d5d2ed1a0b884de6c0
test-skeleton: Kill any child process's offspring

This makes sure any subprocesses created by the program being tested get
killed as well if their parent times out.  Otherwise if they are really
stuck, they may remain there running forever after the test case and
then the whole test suite has completed, until killed by hand.

* test-skeleton.c (signal_handler): Kill the whole process group
before killing the child individually.
(main): Report any failure on `setpgid'.
ChangeLog
test-skeleton.c