Documentation here http://nim-lang.org/docs/osproc.html says that
proc terminate(p: Process)
sends SIGTERM
and
proc kill(p: Process)
sends SIGKILL.
But in sources I see
proc kill(p: Process) =
terminate(p)
There is no differences when I run them too, so how to correctly send SIGKILL to a process?
Nim Compiler Version 0.12.1 (2016-01-18) [Linux: amd64], Ubuntu 15.10
@Jehan, Thank you. But I still have zombie processes when I use kill() without waitForExit() on Linux, and they disappear only after my program's death.
I don't know whether this is normal behavior. It's not a problem, but I wonder why