use `ps -p` instead of `ps --pid`
make it compatible on FreeBSD. If the parent process does not exist, there's no need to kill it.
Showing
Please register or sign in to comment
make it compatible on FreeBSD. If the parent process does not exist, there's no need to kill it.