[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What signal should timeout send when it gets a SIGTERM?
From: |
Kim Hansen |
Subject: |
Re: What signal should timeout send when it gets a SIGTERM? |
Date: |
Mon, 8 Mar 2010 09:50:37 +0100 |
On 2010-03-08, Pádraig Brady <address@hidden> wrote:
>
> Also what about the case where a command usually
> behaves normally and exits when it gets a TERM,
> but sometimes it hangs and needs a KILL which
> you specify with timeout. You wouldn't want to
> change the TERM into a KILL in that case.
That is actually exactly my case, but I could live with sending it a
KILL all the time.
>
> Perhaps we could handle all cases with
> the equivalent of:
>
> if (sig==TERM && user_sig==KILL) {
> send(sig); /* give chance to term gracefully */
> sleep(1);
> send(KILL); /* nuke it from orbit */
> }
Good idea, that would solve all my problems, and at the same time it
changes the interface for other users very little. A SIGNALS section
in the man page explainig this might also be a good idea.
Can you tell me what version of coreutils this change will end up in?
Thanks,
--
Kim Hansen
Vadgårdsvej 3, 2.tv
2860 Søborg
Fastnet: 3956 2437 -- Mobil: 3091 2437
- Re: What signal should timeout send when it gets a SIGTERM?, (continued)
- Re: What signal should timeout send when it gets a SIGTERM?, Kim Hansen, 2010/03/08
- Re: What signal should timeout send when it gets a SIGTERM?, Pádraig Brady, 2010/03/08
- Re: What signal should timeout send when it gets a SIGTERM?, Pádraig Brady, 2010/03/15
- Re: What signal should timeout send when it gets a SIGTERM?, Jim Meyering, 2010/03/16
- Re: What signal should timeout send when it gets a SIGTERM?, Pádraig Brady, 2010/03/16
- Re: What signal should timeout send when it gets a SIGTERM?, Jim Meyering, 2010/03/16
- Re: What signal should timeout send when it gets a SIGTERM?, Jim Meyering, 2010/03/17
- Re: What signal should timeout send when it gets a SIGTERM?, Eric Blake, 2010/03/17
- Re: What signal should timeout send when it gets a SIGTERM?, Pádraig Brady, 2010/03/17
- Re: What signal should timeout send when it gets a SIGTERM?, Kim Hansen, 2010/03/21
Re: What signal should timeout send when it gets a SIGTERM?,
Kim Hansen <=