help-bash
[Top][All Lists]
Advanced

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

Re: despite disown -h, process ends with terminal


From: Chet Ramey
Subject: Re: despite disown -h, process ends with terminal
Date: Mon, 22 May 2023 11:47:27 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 5/21/23 7:59 PM, watael rocketmail via wrote:
hi,

i'm trying to keep process running after script kills xterm like this:

#!/bin/bash

firefox & disown -h $!
kill -9 $PPID

but when xterm terminates, firefox terminates too.

`disown -h' only keeps bash from sending SIGHUP to its child processes.
It doesn't change child processes' signal handling, and it doesn't keep
other processes -- like xterm -- from sending SIGHUP, or any other signal,
to them.

--
``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/




reply via email to

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