Re: test processes are not all killed
Tommi Rantala <[email protected]> Wed, 2 Aug 2017 17:57:21 +0300
| Newsgroups | org.kernel.vger.trinity |
|---|---|
| Message-ID | <CA+ydwtoYiyyyiBvmMOO9ELvipyTePA8E2hmeNsU=pbhymdKSrA@mail.gmail.com> |
2017-08-02 6:09 GMT+03:00 Dai Xiang <[email protected]>: > On Tue, Aug 01, 2017 at 11:38:23AM -0400, Dave Jones wrote: >> On Tue, Aug 01, 2017 at 05:38:13PM +0800, Dai Xiang wrote: >> > Hi! >> > I use below cmds(with root permission) include trinity to test and find an interesting issue: >> > >> > cmd="trinity -q -q -l off -s $seed -x get_robust_list -x remap_file_pages -N 999999999" >> > cd /tmp >> > chroot --userspec nobody:nogroup / $cmd 2>&1 & >> > pid=$! >> > sleep 300s >> > kill -9 $pid Hi, "kill -9 $pid" only kills the main trinity pid, right? So the watchdog and all the forked child processes will not get killed. Maybe Dave knows better if the other trinity processes will kill themselves if they get re-parented. Perhaps you could do "killall -9 trinity" or something like that. -Tommi