bpipe icon indicating copy to clipboard operation
bpipe copied to clipboard

Check that at least the pid belongs to a java process before killing it

Open zamaudio opened this issue 7 years ago • 3 comments

Hopefully pidof is portable...

zamaudio avatar Nov 25 '18 08:11 zamaudio

With any luck, this fixes #244

zamaudio avatar Nov 25 '18 08:11 zamaudio

Hmm, just testing on my Mac I don't seem to have pidof - might have to do something cruder like ps -efa | grep java?

ssadedin avatar Nov 26 '18 07:11 ssadedin

Make sure you stick to POSIX options of ps in case OSX and Linux are different...

gdevenyi avatar Nov 26 '18 13:11 gdevenyi