OSDN Git Service

mkshrc: set +o nohup.
authorJosh Gao <jmgao@google.com>
Thu, 22 Mar 2018 01:03:34 +0000 (18:03 -0700)
committerJosh Gao <jmgao@google.com>
Thu, 22 Mar 2018 01:19:50 +0000 (18:19 -0700)
Turn off nohup in mkshrc so that backgrounded jobs receive SIGHUP when
the parent shell exits.

Bug: http://b/76116378
Test: manual
Change-Id: I347d25013df107e6bd2e985a0a14e022c9fdf2ab

mkshrc
mkshrc_vendor

diff --git a/mkshrc b/mkshrc
index 778cf09..d37de12 100644 (file)
--- a/mkshrc
+++ b/mkshrc
@@ -6,6 +6,8 @@
 #
 # Support: https://launchpad.net/mksh
 
+set +o nohup
+
 if (( USER_ID )); then PS1='$'; else PS1='#'; fi
 PS4='[$EPOCHREALTIME] '; PS1='${|
        local e=$?
index 778cf09..d37de12 100644 (file)
@@ -6,6 +6,8 @@
 #
 # Support: https://launchpad.net/mksh
 
+set +o nohup
+
 if (( USER_ID )); then PS1='$'; else PS1='#'; fi
 PS4='[$EPOCHREALTIME] '; PS1='${|
        local e=$?