]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
There are no more SIGTSTP signal handler.
authorNicolas François <nicolas.francois@centraliens.net>
Tue, 20 Aug 2013 00:06:03 +0000 (02:06 +0200)
committerNicolas François <nicolas.francois@centraliens.net>
Tue, 20 Aug 2013 00:06:03 +0000 (02:06 +0200)
* src/su.c: There are no more SIGTSTP signal handler.

ChangeLog
src/su.c

index 28fcf13687cf6616af98e36bcebe840c749a73c3..4b6d0bbed0fc8624961844823413080e155210ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-20  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/su.c: There are no more SIGTSTP signal handler.
+
 2013-08-20  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/su.c: Check for sigfillset() failure.
index 47262906c3581d97be0737c3a5f50b94ee9fa516..6f06e83f7313ab6d4cc64dc04fa3bbdd1db09bfb 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -465,22 +465,7 @@ static void handle_session (void)
                                pid = waitpid (-1, &status, WUNTRACED);
                        }
 
-                       /* When interrupted by signal, the signal will be
-                        * forwarded to the child, and termination will be
-                        * forced later.
-                        */
-                       if (   ((pid_t)-1 == pid)
-                           && (EINTR == errno)
-                           && (SIGTSTP == caught)) {
-                               caught = 0;
-                               /* Except for SIGTSTP, which request to
-                                * stop the child.
-                                * We will SIGSTOP ourself on the next
-                                * waitpid round.
-                                */
-                               kill (pid_child, SIGSTOP);
-                               stop = false;
-                       } else if (   ((pid_t)-1 != pid && !have_tty)
+                       if (   ((pid_t)-1 != pid && !have_tty)
                                   && (0 != WIFSTOPPED (status))) {
                                /* The child (shell) was suspended.
                                 * Suspend su. */