This test was using setuid() to switch to a non-root user and test that the
process could not kill it child.  The test works, but the child process
is left running after the parent ends.  Fixed it using setresuid(), which
allows the parent to switch back to root and kill the child after passing.
1 file changed