]> err.no Git - linux-2.6/blobdiff - drivers/char/tty_io.c
Pull now into release branch
[linux-2.6] / drivers / char / tty_io.c
index 75d2a46e106fedf09630958ca24c1bf2909a25ad..3752edc30c366c7940812fb25c2569c7f88d3b79 100644 (file)
@@ -1148,7 +1148,8 @@ int tty_check_change(struct tty_struct * tty)
                return 0;
        if (is_current_pgrp_orphaned())
                return -EIO;
-       (void) kill_pgrp(task_pgrp(current), SIGTTOU, 1);
+       kill_pgrp(task_pgrp(current), SIGTTOU, 1);
+       set_thread_flag(TIF_SIGPENDING);
        return -ERESTARTSYS;
 }