🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #4277

trn kill(0) instead if kill(SIGEMT)

#4277
From: Guy Middleton
Date: Wed, 09 Jun 1993 18:46
44 lines
1891 bytes
I think trn should use kill(0) rather than kill(SIGEMT) to see if there
is another trn running.  On our MIPS box, SIGEMT and SIGXCPU are the same
thing, and SIGEMT can't be ignored.  Anyway, kill(0) is intended for just
this use, why not use it?

*** 1.1	1993/06/09 17:00:12
--- init.c	1993/06/09 17:02:47
***************
*** 215,223 ****
  #ifdef TERSE
  		printf("Trn left running, #%d.\n", processnum) FLUSH;
  #endif
! 	    if (kill(processnum, SIGEMT)) {
  				    /* does process not exist? */
- 				    /* (rn ignores SIGEMT) */
  		sleep(2);
  #ifdef VERBOSE
  		IF(verbose)
--- 215,222 ----
  #ifdef TERSE
  		printf("Trn left running, #%d.\n", processnum) FLUSH;
  #endif
! 	    if (kill(processnum, 0)) {
  				    /* does process not exist? */
  		sleep(2);
  #ifdef VERBOSE
  		IF(verbose)
*** 1.1	1993/06/09 16:58:17
--- final.c	1993/06/09 16:59:09
***************
*** 49,60 ****
  #endif
  #ifdef SIGWINCH
      sigset(SIGWINCH, winch_catcher);
- #endif
- 
- #ifndef lint
- #ifdef SIGEMT
-     sigignore(SIGEMT);
- #endif
  #endif
  
  #ifdef DEBUG
--- 49,54 ----
Technical Details
Message-ID: <C8DAsu.1y5@math.uwaterloo.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!usc!cs.utexas.edu!utnut!torn!watserv2.uwaterloo.ca!watmath!gamiddle
References: <C866H1.7ur@borland.com> <C8D6AA.E37@math.uwaterloo.ca>

Show Full Headers
Complete Article Headers
Message-ID: <C8DAsu.1y5@math.uwaterloo.ca>
Subject: trn kill(0) instead if kill(SIGEMT)
Date: Wed, 9 Jun 1993 18:46:04 GMT
From: gamiddle@math.uwaterloo.ca (Guy Middleton)
References: <C866H1.7ur@borland.com> <C8D6AA.E37@math.uwaterloo.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!usc!cs.utexas.edu!utnut!torn!watserv2.uwaterloo.ca!watmath!gamiddle
Newsgroups: news.software.readers,news.software.nntp
Keywords: trn 3.0 ftp overview NOV XOVER thread mthreads
Sender: news@math.uwaterloo.ca (News Owner)
Organization: University of Waterloo Software Liberation Army
Lines: 44