home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume20 / scan / patch01 < prev    next >
Encoding:
Text File  |  1991-05-22  |  2.1 KB  |  63 lines

  1. Newsgroups: comp.sources.misc
  2. From: Patrick Wolfe <pwolfe@kai.com>
  3. Subject:  v20i004:  scan - A directory menu program, Patch01
  4. Message-ID: <1991May22.032547.16081@sparky.IMD.Sterling.COM>
  5. X-Md4-Signature: 252ad6b7ff34cd1a2a9c138244e5c1bb
  6. Date: Wed, 22 May 1991 03:25:47 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: Patrick Wolfe <pwolfe@kai.com>
  10. Posting-number: Volume 20, Issue 4
  11. Archive-name: scan/patch01
  12. Patch-To: scan: Volume 20, Issue 1-3
  13.  
  14. Here's a (very tiny) patch neccessary to compile scan on Esix
  15. (it's just putting ifdef's around the two "signal(SIGTSTP..." lines) 
  16. in one file). Use patch to apply this.
  17.  
  18. Patrick Wolfe  (pwolfe@kai.com, uunet!uiucuxc!kailand!pwolfe)
  19.  
  20. --- cut here --- cut here --- cut here --- cut here --- cut here ---
  21.  
  22. *** 1.12    1991/05/20 16:46:21
  23. --- runcmd.c    1991/05/21 04:32:27
  24. ***************
  25. *** 217,223 ****
  26. --- 217,225 ----
  27.   signal (SIGINT, SIG_DFL);            /* trap signal 2, interrupt */
  28.   signal (SIGQUIT, SIG_DFL);            /* trap signal 3, quit */
  29.   signal (SIGTERM, SIG_DFL);            /* trap signal 15, software termination */
  30. + #ifdef SIGTSTP
  31.   signal (SIGTSTP, SIG_IGN);            /* trap signal 15, software termination */
  32. + #endif
  33.   
  34.   if ((cpid = fork()) == 0) {
  35.       execvp (arglist[0], arglist);
  36. ***************
  37. *** 251,257 ****
  38. --- 253,261 ----
  39.   signal (SIGINT, die);        /* trap signal 2, interrupt */
  40.   signal (SIGQUIT, die);        /* trap signal 3, quit */
  41.   signal (SIGTERM, die);        /* trap signal 15, software termination */
  42. + #ifdef SIGTSTP
  43.   signal (SIGTSTP, TSTP_RTN);    /* trap tstp signal */
  44. + #endif
  45.   noecho ();            /* curses should not echo keys as they are typed */
  46.   nonl ();            /* disable cr/lf mapping */
  47.   crmode ();            /* turn on cbreak mode */
  48.  
  49.  
  50.  
  51.  
  52.  
  53. -- 
  54.         Patrick Wolfe  (pwolfe@kai.com, uunet!uiucuxc!kailand!pwolfe)
  55.         System Programmer, Kuck & Associates
  56.  
  57. exit 0 # Just in case...
  58. -- 
  59. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  60. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  61. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  62. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  63.