[v2,03/13] utils/pb-console: Set up controlling terminal
diff mbox series

Message ID 20181128042012.25916-4-sam@mendozajonas.com
State Accepted
Headers show
Series
  • User support and client permissions
Related show

Commit Message

Samuel Mendoza-Jonas Nov. 28, 2018, 4:20 a.m. UTC
Enabling job control in the shell.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
---
 utils/pb-console | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/utils/pb-console b/utils/pb-console
index ef9ed0f6..62952959 100644
--- a/utils/pb-console
+++ b/utils/pb-console
@@ -94,7 +94,7 @@  then
 
 	if [ "$detach" = 1 ]
 	then
-		$getty $login_arg "$@" &
+		setsid -c $getty $login_arg "$@" &
 		exit
 	else
 		exec $getty $login_arg "$@"