X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=drivers%2Ftty%2Ftty_io.c;h=3a1a01af9a805b38b05f1833eefa80400072f4f4;hb=68cf8d0c720cdb76dc912c983d8dae9de6d6e5cf;hp=a9355ce1c6d586cef3c9cd62641a141bfa91c245;hpb=afba951eab92ce43ff1fa1c3366cc6fec825936c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index a9355ce..3a1a01a 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -854,7 +854,8 @@ void disassociate_ctty(int on_exit) struct pid *tty_pgrp = tty_get_pgrp(tty); if (tty_pgrp) { kill_pgrp(tty_pgrp, SIGHUP, on_exit); - kill_pgrp(tty_pgrp, SIGCONT, on_exit); + if (!on_exit) + kill_pgrp(tty_pgrp, SIGCONT, on_exit); put_pid(tty_pgrp); } }