[comp.sources.misc] v20i004: scan - A directory menu program, Patch01

pwolfe@kai.com (Patrick Wolfe) (05/22/91)

Submitted-by: Patrick Wolfe <pwolfe@kai.com>
Posting-number: Volume 20, Issue 4
Archive-name: scan/patch01
Patch-To: scan: Volume 20, Issue 1-3

Here's a (very tiny) patch neccessary to compile scan on Esix
(it's just putting ifdef's around the two "signal(SIGTSTP..." lines) 
in one file). Use patch to apply this.

Patrick Wolfe  (pwolfe@kai.com, uunet!uiucuxc!kailand!pwolfe)

--- cut here --- cut here --- cut here --- cut here --- cut here ---

*** 1.12	1991/05/20 16:46:21
--- runcmd.c	1991/05/21 04:32:27
***************
*** 217,223 ****
--- 217,225 ----
  signal (SIGINT, SIG_DFL);			/* trap signal 2, interrupt */
  signal (SIGQUIT, SIG_DFL);			/* trap signal 3, quit */
  signal (SIGTERM, SIG_DFL);			/* trap signal 15, software termination */
+ #ifdef SIGTSTP
  signal (SIGTSTP, SIG_IGN);			/* trap signal 15, software termination */
+ #endif
  
  if ((cpid = fork()) == 0) {
  	execvp (arglist[0], arglist);
***************
*** 251,257 ****
--- 253,261 ----
  signal (SIGINT, die);		/* trap signal 2, interrupt */
  signal (SIGQUIT, die);		/* trap signal 3, quit */
  signal (SIGTERM, die);		/* trap signal 15, software termination */
+ #ifdef SIGTSTP
  signal (SIGTSTP, TSTP_RTN);	/* trap tstp signal */
+ #endif
  noecho ();			/* curses should not echo keys as they are typed */
  nonl ();			/* disable cr/lf mapping */
  crmode ();			/* turn on cbreak mode */





-- 
        Patrick Wolfe  (pwolfe@kai.com, uunet!uiucuxc!kailand!pwolfe)
        System Programmer, Kuck & Associates

exit 0 # Just in case...
-- 
Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
Sterling Software, IMD           UUCP:     uunet!sparky!kent
Phone:    (402) 291-8300         FAX:      (402) 291-4362
Please send comp.sources.misc-related mail to kent@uunet.uu.net.