diff options
Diffstat (limited to 'pypers/marelli/modulo4/test_parent_child/test_kill_parent.sh')
-rwxr-xr-x | pypers/marelli/modulo4/test_parent_child/test_kill_parent.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pypers/marelli/modulo4/test_parent_child/test_kill_parent.sh b/pypers/marelli/modulo4/test_parent_child/test_kill_parent.sh new file mode 100755 index 0000000..4d026a4 --- /dev/null +++ b/pypers/marelli/modulo4/test_parent_child/test_kill_parent.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# test that killing the parent does NOT kill the child +python parent.py& +sleep 3 +kill `cat parent.pid` +sleep 1 +ps aux | grep python |