Are all of the signals sent from the terminal gets sent to the foreground process group?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
When you press Ctrl+C
in the terminal, a SIGINT
signal will be sent to the foreground process group.
Now there are other signals that you can send in the terminal (for example: Ctrl+Z
). Are all of these signals get sent to the foreground process group also, or are there some signals that get sent to the background process groups?
linux shell terminal
add a comment |Â
up vote
1
down vote
favorite
When you press Ctrl+C
in the terminal, a SIGINT
signal will be sent to the foreground process group.
Now there are other signals that you can send in the terminal (for example: Ctrl+Z
). Are all of these signals get sent to the foreground process group also, or are there some signals that get sent to the background process groups?
linux shell terminal
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
When you press Ctrl+C
in the terminal, a SIGINT
signal will be sent to the foreground process group.
Now there are other signals that you can send in the terminal (for example: Ctrl+Z
). Are all of these signals get sent to the foreground process group also, or are there some signals that get sent to the background process groups?
linux shell terminal
When you press Ctrl+C
in the terminal, a SIGINT
signal will be sent to the foreground process group.
Now there are other signals that you can send in the terminal (for example: Ctrl+Z
). Are all of these signals get sent to the foreground process group also, or are there some signals that get sent to the background process groups?
linux shell terminal
asked Nov 9 '17 at 18:58
user259736
111
111
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
All keyboard signals are sent to the foreground process group only.
Sometimes a signal is sent to all processes in the session but those are not generated by the terminal. When the shell (at leastbash
) receives SIGHUP
then it sends this signal (by default) to all its child processes. And bash
can be configured to send SIGHUP
to all jobs when it exits (huponexit
).
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
All keyboard signals are sent to the foreground process group only.
Sometimes a signal is sent to all processes in the session but those are not generated by the terminal. When the shell (at leastbash
) receives SIGHUP
then it sends this signal (by default) to all its child processes. And bash
can be configured to send SIGHUP
to all jobs when it exits (huponexit
).
add a comment |Â
up vote
1
down vote
All keyboard signals are sent to the foreground process group only.
Sometimes a signal is sent to all processes in the session but those are not generated by the terminal. When the shell (at leastbash
) receives SIGHUP
then it sends this signal (by default) to all its child processes. And bash
can be configured to send SIGHUP
to all jobs when it exits (huponexit
).
add a comment |Â
up vote
1
down vote
up vote
1
down vote
All keyboard signals are sent to the foreground process group only.
Sometimes a signal is sent to all processes in the session but those are not generated by the terminal. When the shell (at leastbash
) receives SIGHUP
then it sends this signal (by default) to all its child processes. And bash
can be configured to send SIGHUP
to all jobs when it exits (huponexit
).
All keyboard signals are sent to the foreground process group only.
Sometimes a signal is sent to all processes in the session but those are not generated by the terminal. When the shell (at leastbash
) receives SIGHUP
then it sends this signal (by default) to all its child processes. And bash
can be configured to send SIGHUP
to all jobs when it exits (huponexit
).
answered Nov 9 '17 at 20:16
Hauke Laging
53.6k1282130
53.6k1282130
add a comment |Â
add a comment |Â
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%2f403587%2fare-all-of-the-signals-sent-from-the-terminal-gets-sent-to-the-foreground-proces%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