Difference between closing terminal and closing shell on child processes
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Opening a new terminal and typing the command firefox&
inside, ps -l
gives :
4 R 1000 23132 23104 99 80 0 - 2177945 - pts/27 00:00:07 firefox
If the shell is closed with the command exit
, the firefox child process become an orphan and stays open with PPID 1.
The result of ps -el|grep firefox is then :
4 S 1000 23132 1 14 80 0 - 2233312 poll_s ? 00:00:21 firefox
But if the terminal is closed (instead of closing the shell), firefox
is closed as well.
What is happening there ? Is SIGTERM sent to the terminal, the bash shell and all child processes ?
Is there a command that has the same effect as closing the terminal that can be used in the shell ?
linux bash terminal process
add a comment |Â
up vote
0
down vote
favorite
Opening a new terminal and typing the command firefox&
inside, ps -l
gives :
4 R 1000 23132 23104 99 80 0 - 2177945 - pts/27 00:00:07 firefox
If the shell is closed with the command exit
, the firefox child process become an orphan and stays open with PPID 1.
The result of ps -el|grep firefox is then :
4 S 1000 23132 1 14 80 0 - 2233312 poll_s ? 00:00:21 firefox
But if the terminal is closed (instead of closing the shell), firefox
is closed as well.
What is happening there ? Is SIGTERM sent to the terminal, the bash shell and all child processes ?
Is there a command that has the same effect as closing the terminal that can be used in the shell ?
linux bash terminal process
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Opening a new terminal and typing the command firefox&
inside, ps -l
gives :
4 R 1000 23132 23104 99 80 0 - 2177945 - pts/27 00:00:07 firefox
If the shell is closed with the command exit
, the firefox child process become an orphan and stays open with PPID 1.
The result of ps -el|grep firefox is then :
4 S 1000 23132 1 14 80 0 - 2233312 poll_s ? 00:00:21 firefox
But if the terminal is closed (instead of closing the shell), firefox
is closed as well.
What is happening there ? Is SIGTERM sent to the terminal, the bash shell and all child processes ?
Is there a command that has the same effect as closing the terminal that can be used in the shell ?
linux bash terminal process
Opening a new terminal and typing the command firefox&
inside, ps -l
gives :
4 R 1000 23132 23104 99 80 0 - 2177945 - pts/27 00:00:07 firefox
If the shell is closed with the command exit
, the firefox child process become an orphan and stays open with PPID 1.
The result of ps -el|grep firefox is then :
4 S 1000 23132 1 14 80 0 - 2233312 poll_s ? 00:00:21 firefox
But if the terminal is closed (instead of closing the shell), firefox
is closed as well.
What is happening there ? Is SIGTERM sent to the terminal, the bash shell and all child processes ?
Is there a command that has the same effect as closing the terminal that can be used in the shell ?
linux bash terminal process
linux bash terminal process
asked 9 mins ago
bob dylan
3391311
3391311
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476210%2fdifference-between-closing-terminal-and-closing-shell-on-child-processes%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password