From 27b221e439fb4631d4e639f16ff8978c68b544bf Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 18 Oct 2009 17:32:44 +0000 Subject: [PATCH] Make comment at the top of script_exec() match reality. --- script.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script.c b/script.c index c6a50c87c..125f1d909 100644 --- a/script.c +++ b/script.c @@ -323,10 +323,11 @@ log_output(buf, n, then, now, ofile, tfile) * allow the child to be suspended in the parent session with the * parent controlling tty. Acts as the "glue" between the two controlling * ttys from a job-control standpoint. - * 2) child, creates a new session with the pty slave as the controlling tty. - * Does all the work passing data to and from the pty and signals parent - * when it receives job control-related signals on behalf of grandchild. - * 3) grandchild, runs the actual command, belongs to child's session and pgrp. + * 2) child, creates a new session. Does all the I/O passing data to and + * from the pty and signals parent when it receives job control-related + * signals on behalf of the grandchild. + * 3) grandchild, runs the actual command with the pty slave as its + * controlling tty, belongs to child's session but has its own pgrp. */ int script_execv(path, argv)