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

Re: How kill a process with its GPid?



ok, thanks :)

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

2008/7/2 Tor Lillqvist <tml iki fi>:
>> 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
>



-- 
Nicolas Joseph

Responsable de la rubrique GTK+ de developpez.com /
In charge of the GTK+ section on developpez.com

http://nicolasj.developpez.com


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