freebsd-ports/shells/ksh93/files/patch-src-cmd-ksh93-sh-jobs.c
Sunpoet Po-Chuan Hsieh ef4cf984b6 - Bugfix: ksh segfaults on suspend
- Bump PORTREVISION for package change

Reported by:	Greg Rivers <gcr+freebsd-ports@tharned.org>
Obtained from:	https://bugzilla.redhat.com/show_bug.cgi?id=691077
2011-10-05 12:28:39 +00:00

10 lines
292 B
C

--- src/cmd/ksh93/sh/jobs.c.orig 2010-12-02 00:57:47.000000000 +0800
+++ src/cmd/ksh93/sh/jobs.c 2011-10-05 10:52:30.844946545 +0800
@@ -945,6 +945,7 @@
if(!(pw = job_bypid(pid)))
{
pw = &dummy;
+ pw->p_shp = sh_getinterp();
pw->p_pid = pid;
pw->p_pgrp = pid;
}