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