Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14956 > unrolled thread
| Started by | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| First post | 2018-12-26 11:42 -0500 |
| Last post | 2018-12-26 11:42 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Terminating background bash kills the parent? Chet Ramey <chet.ramey@case.edu> - 2018-12-26 11:42 -0500
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Date | 2018-12-26 11:42 -0500 |
| Subject | Re: Terminating background bash kills the parent? |
| Message-ID | <mailman.6316.1545842530.1284.bug-bash@gnu.org> |
On 12/20/18 12:02 AM, Bize Ma wrote: > Open a new terminal like xterm, change prompt to something like: > > PS1=' $SHLVL $ ' > > Start a couple of bash subshells: > > 1 $ bash > 2 $ bash > 3 $ echo $$ > 9371 > > Suspend the last one: > > 3 $ suspend > [1]+ Stopped bash > 2 $ echo $$ > 9313 > 2 $ > > Make the suspended shell continue: > > 2 $ kill -CONT 9371 > > The parent gets killed > > 1 $ echo $$ > 9034 > 1 $ The terminal ends up in the wrong process group, and the parent shell can't do anything about it. You either get EOF on stdin, -1/EIO on the read, or a SIGHUP. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to top | Article view | gnu.bash.bug
csiph-web