svn commit: r281982 - head/bin/sh

Jilles Tjoelker jilles at FreeBSD.org
Sat Apr 25 13:34:26 UTC 2015


Author: jilles
Date: Sat Apr 25 13:34:25 2015
New Revision: 281982
URL: https://svnweb.freebsd.org/changeset/base/281982

Log:
  sh: Pass along SIGINT from a child if job control is enabled, even when not
  interactive.
  
  I added the interactive check in r208881 to be safe, but in actual use
  (scripts in set -m mode) passing along SIGINT seems best.
  
  Discussed with:	bdrewery

Modified:
  head/bin/sh/jobs.c

Modified: head/bin/sh/jobs.c
==============================================================================
--- head/bin/sh/jobs.c	Sat Apr 25 08:14:08 2015	(r281981)
+++ head/bin/sh/jobs.c	Sat Apr 25 13:34:25 2015	(r281982)
@@ -1057,7 +1057,7 @@ waitforjob(struct job *jp, int *origstat
 			CLEAR_PENDING_INT;
 	}
 #if JOBS
-	else if (rootshell && iflag && propagate_int &&
+	else if (rootshell && propagate_int &&
 			WIFSIGNALED(status) && WTERMSIG(status) == SIGINT)
 		kill(getpid(), SIGINT);
 #endif


More information about the svn-src-all mailing list