commit | bad8e03e991c421cae76f9f1f72ade41aef70cab | [log] [tgz] |
---|---|---|
author | robbiew <robbiew> | Wed May 14 19:08:40 2003 +0000 |
committer | robbiew <robbiew> | Wed May 14 19:08:40 2003 +0000 |
tree | 84c8464a19fb66dc1cdabbe0d9b0dfc6852a568b | |
parent | 48be10fe43cb932d7759e37d169dbeb063d1e326 [diff] |
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.