bug-coreutils
[Top][All Lists]
Advanced

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

Re: nohup feature request / Please fwd to Jim Meyering


From: Phillip Susi
Subject: Re: nohup feature request / Please fwd to Jim Meyering
Date: Thu, 14 Jun 2007 15:08:47 -0400
User-agent: Thunderbird 1.5.0.12 (Windows/20070509)

Micah Cowan wrote:
Untrue, actually: _handling_ the signals would not handle them in the
exec'd child (for obvious reasons), but POSIX requires blocked signals
to remain blocked after an exec.

Try the following:

----
#!/bin/sh
trap "" TSTP
exec yes > /dev/null
----

and then try suspending the program with ^Z, with and without the "trap"
line commented out. :)

Interesting... I thought that exec reset all signal handlers to their default behavior...






reply via email to

[Prev in Thread] Current Thread [Next in Thread]