[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: how to kill a subprocess nicely?
- From: Giorgos Keramidas <keramida hades hell gr>
- To: gtk-app-devel-list redhat com
- Subject: Re: how to kill a subprocess nicely?
- Date: Mon, 9 Aug 1999 15:55:38 +0300
After a long period (approx. 7 days) of silence,
here I come again...
On Mon, Aug 02, 1999 at 10:15:01AM +0200, Thomas Niederreiter wrote:
| ...
| In my GTK-App I start a subprocess via fork and
| execl("/bin/sh", "sh", "-c", cmd ,NULL)
|
| ...
| I tried to send an SIGINT via kill-command to the pid I get back from
| the fork (which is the /bin/sh...). But the Shell does not pass this
| signal to its child (my subprocess).
Actually most shells will use SIGINT for other purposes, not for "dying".
A better way to kill a process would be to send it a SIGTERM first, then
wait for a while, and send it a SIGKILL.
--
Giorgos Keramidas, <keramida@ceid.upatras.gr>
"Today is not yesterday's tomorrow, but tomorrow's yesterday."
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]