File pdksh-5.2.14-10711.patch of Package pdksh

--- jobs.c	2004-09-01 13:31:30.617398160 +0530
+++ jobs.c	2004-09-01 13:40:43.907285312 +0530
@@ -366,7 +366,12 @@ j_change()
 					ttypgrp_ok = 0;
 					break;
 				}
-				if (ttypgrp == our_pgrp)
+				/*
+				 *  Here we also have to check whether the current
+				 *  process belongs to the shell's group.
+				 *  So if it does, let it go.
+				 */
+				if (ttypgrp == our_pgrp || our_pgrp == getpgid(kshpid))
 					break;
 				kill(0, SIGTTIN);
 			}
openSUSE Build Service is sponsored by