Re: How kill a process with its GPid?



I create process with g_spawn_async_with_pipes. Is it possible to kill it?

Not in a cross-platform way. On POSIX, a GPid is just a pid, so use
kill(). On Windows, GPid is a HANDLE for the process, so use
TerminateProcess().

--tml



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