Dear misc@ readers,

I'm lost with the subject... From the man page I see that, differently from standard ksh, OpenBSD implementation by default do *not* send SIGHUP signals to child processes when a SIGHUP is received by the parent shell and that this mechanism can be changed through:

set +o nohup

So far, so good; now:

[....................snip....................]
<open a new xterm>
$ sleep 30 &
[1] 46318
$ pgrep -fl sleep
46318 sleep 30
<close the terminal and open a new one>
$ pgrep -fl sleep
46318 sleep 30
[....................snip....................]

As expected, the sleep process is still there. But:

[....................snip....................]
<open a new xterm>
set +o nohup
$ sleep 30 &
[1] 83071
$ pgrep -fl sleep
83071 sleep 30
<close the terminal and open a new one>
$ pgrep -fl sleep
83071 sleep 30
[....................snip....................]

Even after having cleared the shell option, the process is not killed.

Just in case, I also tried with:

set -o nohup

observing the same behavior.

Could you please give me some hints?

All the best

-- Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis

Reply via email to