Skip to main content

Questions tagged [sighup]

0 votes
1 answer
71 views

If I run ./script.sh &, where script is the following: #!/bin/bash echo "hello" sleep 30 echo "hello again" sleep 30 touch /root/foo.txt Then I use ps au, to identify the "...
Thomas Stokes's user avatar
2 votes
0 answers
384 views

Scenario: $ cat t0.txt t1.txt $ cat t1.txt xxx $ sed -n 1p t0.txt | xargs less # OK $ sed -n 1p t0.txt | xargs nano Received SIGHUP or SIGTERM dvl-linux64 $ nano --version GNU nano, version 2.5.3 ...
pmor's user avatar
  • 757
2 votes
1 answer
2k views

Bash manual says If the huponexit shell option has been set with shopt (see Section 4.3.2 [The Shopt Builtin], page 62), Bash sends a SIGHUP to all jobs when an interactive login shell exits. Why ...
Tim's user avatar
  • 107k
-2 votes
1 answer
705 views

APUE says Since the process group is orphaned when the parent terminates, and the process group contains a stopped process, POSIX.1 requires that every process in the newly orphaned ...
Tim's user avatar
  • 107k
1 vote
1 answer
711 views

In bash, when running ( sleep 123 &), the sleep 123 process will continue running, when the subshell exits. How can I stop the sleep 123 process before its parent subshell exits? I'm trying to ...
Tim's user avatar
  • 107k
3 votes
1 answer
1k views

In The Linux Programming Interface: SIGHUP is generated when a process group becomes orphaned. In an interactive bash process, $ ( sleep 123 &) will first forks a subshell, and the ...
Tim's user avatar
  • 107k
1 vote
1 answer
591 views

When a terminal is disconnected, the OS kernel sends SIGHUP to the controlling process of the terminal. When a terminal emulator terminates, who sends SIGHUP to the controlling process of the ...
Tim's user avatar
  • 107k
0 votes
0 answers
843 views

I have this bash script: https://gist.github.com/ORESoftware/06dbb26a48d2ddf48a5a2166834e0836 when I call ql_acquire_lock in a shell, if I can call mkdir on a directory, then I acquire that lock. ...
Alexander Mills's user avatar