[Ilugc] when does kernel send SIGHUP
Natarajan V
rajanvn at gmail.com
Fri Feb 17 14:50:10 IST 2012
On Fri, Feb 17, 2012 at 2:27 PM, kumaresan chandran
<kumaresanchandran at gmail.com> wrote:
> Actually i am not running in Terminal mode. I have script running in back
> ground mode.
>
SIGHUP stands for SIGnal HangUP. It means that the connection between
the terminal and the server has been disconnected. It could also mean
that the terminal that you have running is closed (explicit / timeout/
something else)
Ref: http://en.wikipedia.org/wiki/SIGHUP
You get the signal, if your process is "tied" to a particular terminal
and the terminal is terminated (pun intended). This happens even if
the process is in the BG. To avoid this, you can try one or more of
the following:
<Option 1: Neat solution>
$ nohup hello.sh &
<option 1.1: if you forget the &>
$ nohup hello.sh
^z
$ bg
HTH,
--
Natarajan
More information about the ilugc
mailing list