logoalt Hacker News

adrianmonktoday at 5:11 AM2 repliesview on HN

Maybe this logic should be built into the "kill" command (or some other standard command). Given that this is the right way, it shouldn't be more tedious than the wrong way!

It could also monitor the target process and inform you immediately when it exits, saving you the trouble of using "ps" to confirm that the target is actually gone.


Replies

jolmgtoday at 7:33 AM

Different programs may take different amounts of time to cleanup and close. To know if a signal failed takes human judgment or heuristic. A program receiving a signal is even able to show a confirmation dialog for the user to save stuff, etc. before closing.

eptcykatoday at 7:25 AM

Kill is not a command to kill processes, it is a misnomer. Kill is meant to send signals to processes.