🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #1944

Re: trn kill(0) instead if kill(SIGEMT)

#1944
From: Guy Harris
Date: Sat, 12 Jun 1993 19:58
16 lines
1787 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?

Pre-4.xBSD (for some value of "x"; I think the correct value is 2)
UNIXes, and pre-System V Release "y" (for some value of "y") UNIXes,
don't support "kill(0)", as I remember.  I.e., all *modern* UNIXes
handle "kill(0)", but if there are a sufficient number of non-modern
UNIXes out there, this may have to be something selected by Configure.

BTW, does 3.0 save a host name in the file where it saves the process
ID?  Around here, sometimes *no* "kill()" will discover whether the other
"trn" is running or not, because it may be running on a different
machine - sometimes I run it on my workstation, and sometimes I run it
on another machine.
Technical Details
Message-ID: <18021@auspex-gw.auspex.com>
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!newsserver.jvnc.net!darwin.sura.net!haven.umd.edu!uunet!auspex-gw!guy
References: <C866H1.7ur@borland.com> <C8D6AA.E37@math.uwaterloo.ca> <C8DAsu.1y5@math.uwaterloo.ca>

Show Full Headers
Complete Article Headers
Message-ID: <18021@auspex-gw.auspex.com>
Subject: Re: trn kill(0) instead if kill(SIGEMT)
Date: Sat, 12 Jun 1993 19:58:52 +0000
From: guy@Auspex.COM (Guy Harris)
References: <C866H1.7ur@borland.com> <C8D6AA.E37@math.uwaterloo.ca> <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!newsserver.jvnc.net!darwin.sura.net!haven.umd.edu!uunet!auspex-gw!guy
Newsgroups: news.software.readers,news.software.nntp
Keywords: trn 3.0 ftp overview NOV XOVER thread mthreads
Sender: news@auspex-gw.auspex.com
Followup-To: news.software.readers
Organization: Auspex Systems, Santa Clara
Lines: 16
Nntp-Posting-Host: auspex.auspex.com