>First reported by CrystalMath <~coderain@reactos/developer/theflash>
Here’s the patch they came up with and tested locally.
--- ksh-93u+20120801.orig/src/cmd/ksh93/sh/jobs.c
+++ ksh-93u+20120801/src/cmd/ksh93/sh/jobs.c
@@ -1111,7 +1111,7 @@ static struct process *job_bystring(regi
int job_kill(register struct process *pw,register int sig)
{
- Shell_t *shp = pw->p_shp;
+ Shell_t *shp;
register pid_t pid;
register int r;
const char *msg;
@@ -1125,6 +1125,7 @@ int job_kill(register struct process *pw
if(pw==0)
goto error;
pid = pw->p_pid;
+ shp = pw->p_shp;
#if SHOPT_COSHELL
if(pw->p_cojob)
r = cokill(pw->p_cojob->coshell,pw->p_cojob,sig);