Blame SOURCES/ksh-20130214-fixkill.patch

503c26
diff -up ksh-20130214/src/cmd/ksh93/sh/jobs.c.fixkill ksh-20130214/src/cmd/ksh93/sh/jobs.c
503c26
--- ksh-20130214/src/cmd/ksh93/sh/jobs.c.fixkill	2012-09-26 17:43:04.000000000 +0200
503c26
+++ ksh-20130214/src/cmd/ksh93/sh/jobs.c	2013-02-22 16:38:05.080161740 +0100
503c26
@@ -1104,6 +1104,8 @@ static struct process *job_bystring(regi
503c26
 
503c26
 int job_kill(register struct process *pw,register int sig)
503c26
 {
503c26
+	if(pw==0)
503c26
+		goto error;
503c26
 	Shell_t	*shp = pw->p_shp;
503c26
 	register pid_t pid;
503c26
 	register int r;
503c26
@@ -1127,8 +1129,6 @@ int job_kill(register struct process *pw
503c26
 #endif	/* SIGTSTP */
503c26
 	job_lock();
503c26
 	errno = ECHILD;
503c26
-	if(pw==0)
503c26
-		goto error;
503c26
 	pid = pw->p_pid;
503c26
 #if SHOPT_COSHELL
503c26
 	if(pw->p_cojob)