Dr. Werner Fink 2012-02-09 09:56:55 +00:00 committed by Git OBS Bridge
parent e2bd345208
commit 0bbff2ba96
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 9 09:47:38 UTC 2012 - werner@suse.de
- Add patch from David Korn to fix foreground job control (bnc #743244)
-------------------------------------------------------------------
Mon Feb 6 12:01:10 UTC 2012 - werner@suse.de

View File

@ -82,6 +82,7 @@ Patch19: ksh93-reg.dif
Patch20: ksh93-aso.dif
Patch21: ksh93-vm.dif
Patch22: ksh93-limit-name-len.dif
Patch23: ksh93-foreground-prgrp.dif
Patch42: ksh-locale.patch
%global use_suid_exe 0
%global use_locale 0
@ -160,6 +161,7 @@ fi
%patch20
%patch21
%patch22
%patch23
%build
#

View File

@ -0,0 +1,13 @@
--- src/cmd/ksh93/sh/jobs.c
+++ src/cmd/ksh93/sh/jobs.c 2012-02-08 11:52:14.000000000 +0100
@@ -841,7 +841,9 @@ static void job_reset(register struct pr
{
/* save the terminal state for current job */
#ifdef SIGTSTP
- job_fgrp(pw,tcgetpgrp(job.fd));
+ pid_t tgrp;
+ if((tgrp=tcgetpgrp(job.fd))!=job.mypid)
+ job_fgrp(pw,tgrp);
if(tcsetpgrp(job.fd,job.mypid) !=0)
return;
#endif /* SIGTSTP */