Blame SOURCES/ksh-20130214-fixkill.patch

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