db8b5b018f
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/ksh#642af4d65a6ae8825306305765a595a6f10eba47
13 lines
559 B
Diff
13 lines
559 B
Diff
diff -up ksh-20120801/src/cmd/ksh93/sh/xec.c.mtty ksh-20120801/src/cmd/ksh93/sh/xec.c
|
|
--- ksh-20120801/src/cmd/ksh93/sh/xec.c.mtty 2014-01-22 16:52:06.441608750 +0100
|
|
+++ ksh-20120801/src/cmd/ksh93/sh/xec.c 2014-01-22 16:52:06.485608361 +0100
|
|
@@ -3163,7 +3169,7 @@ pid_t _sh_fork(Shell_t *shp,register pid
|
|
* completed. Make parent the job group id.
|
|
*/
|
|
if(postid==0)
|
|
- job.curpgid = parent;
|
|
+ job.curpgid = job.jobcontrol?parent:getpid();
|
|
if(job.jobcontrol || (flags&FAMP))
|
|
{
|
|
if(setpgid(parent,job.curpgid)<0 && errno==EPERM)
|