Software Package:       
	pdksh

Release/Version:
	PD KSH v5.2.3 95/06/15

Retrieved from:
	ftp.cs.mun.ca:pub/pdksh

Bug reports:
	This software package is maintained by the software contributor,
	not BSDI.  Please send any bug reports to both support@BSDI.COM
	and pdksh@cs.mun.ca.

Comments:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Modifications to this version made by BSDI:

BSDI has made slight modifications to jobs.c for SIGHUP handling:

*** jobs.c.orig	Tue Oct 24 21:36:52 1995
--- jobs.c	Tue Oct 24 21:36:43 1995
***************
*** 276,296 ****
  	Job	*j;
  	int	killed = 0;
  
! 	for (j = job_list; j != (Job *) 0; j = j->next) {
  #ifdef JOBS
! 		if (j->ppid == procpid && j->state == PSTOPPED) {
! 			killed = 1;
! 			killpg(j->pgrp, SIGCONT);
! 			killpg(j->pgrp, SIGHUP);
! 		}
  #endif /* JOBS */
! 		if (Flag(FLOGIN) && !Flag(FNOHUP) && procpid == kshpid
! 		    && j->ppid == procpid && j->state == PRUNNING)
! 		{
! 			killed = 1;
! 			killpg(j->pgrp, SIGHUP);
! 		}
! 	}
  	if (killed)
  		sleep(1);
  	j_notify();
--- 276,296 ----
  	Job	*j;
  	int	killed = 0;
  
! 	for (j = job_list; j != (Job *) 0; j = j->next)
!                 if (j->ppid == procpid
!                     && (j->state == PSTOPPED
!                         || (j->state == PRUNNING
!                             && ((j->flags & JF_FG)
!                                 || (Flag(FLOGIN) && !Flag(FNOHUP)
!                                     && procpid == kshpid)))))
!                 {
!                         killed = 1;
!                         killpg(j->pgrp, SIGHUP);
  #ifdef JOBS
!                         if (j->state == PSTOPPED)
!                                 killpg(j->pgrp, SIGCONT);
  #endif /* JOBS */
!                 }
  	if (killed)
  		sleep(1);
  	j_notify();
