Re: How kill a process with its GPid?



Have you planned to add this function? It's a part of bug #142591
(g_pid_terminate).

I don't think killing a (child) process is necessarily something that
can be usefully wrapped cross-platform. TerminateProcess() is a
somewhat abrupt way to kill a process on Windows (you might want to
send the windows of a GUI process WM_CLOSE messages instead, or
whatever), and on POSIX you might want to send some other signal than
SIGKILL (which is what most closely corresponds to
TerminateProcess()).

--tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]