in reply to Re: start and kill a process in a local shell
in thread start and kill a process in a local shell

Signal KILL (9) is last resort and should be used as such. A process killed that way has no chance to clean up resources (e.g. flush buffers, close filehandles).

Signals 1, 2, 3 or 15 should be used, an 9 only when the process is still running after those.

  • Comment on Re^2: start and kill a process in a local shell

Replies are listed 'Best First'.
Re^3: start and kill a process in a local shell
by apl (Monsignor) on Oct 12, 2007 at 12:04 UTC
    You are correct. But when I saw a program (...) that does not exit itself, I made the unwarranted assumption that the original writer of the program didn't seem particularly interested in cleaning up.