Are all of the signals sent from the terminal gets sent to the foreground process group?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question
























    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?







    share|improve this question






















      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?







      share|improve this question












      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?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 '17 at 18:58









      user259736

      111




      111




















          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).






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            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






























            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).






            share|improve this answer
























              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).






              share|improve this answer






















                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).






                share|improve this answer












                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).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 9 '17 at 20:16









                Hauke Laging

                53.6k1282130




                53.6k1282130



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay