[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How kill a process with its GPid?
- From: gege2061 <gege2061 redaction-developpez com>
- To: "Tor Lillqvist" <tml iki fi>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How kill a process with its GPid?
- Date: Thu, 3 Jul 2008 13:40:21 +0200
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]