🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #1940

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

#1940
From: Bruce Lilly
Date: Fri, 11 Jun 1993 14:07
20 lines
1750 bytes
In article <C8FEzr.1o0@borland.com>,
 posted to news.software.readers,news.software.nntp,
 davison@borland.com (Wayne Davison) wrote:
>I see no problem making the change.  Does anyone else know why kill(SIGEMT)
>might be preferable to kill(0)?

If trn is not set up to catch SIGEMT (i.e. SIG_DFL is assigned),
it may dump a core file (depending on permissions).  I would
hope that SIGEMT is set to be caught or ignored, otherwise the
trn receiving the signal will dump core and exit, while the one
sending the signal will presumably also exit.

So, if SIGEMT is being caught, what does trn do when it catches
SIGEMT (that may explain why SIGEMT is being used)?

If SIGEMT is set to be ignored by trn, then there's no reason
not to use signal 0 instead of SIGEMT.

-- 
	Bruce Lilly		...uupsi!monymsys!sonyd1!blilly!bruce
Technical Details
Message-ID: <C8Gn84.2qz@blilly.uucp>
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!yale.edu!xlink.net!sol.ctr.columbia.edu!usc!wupost!udel!news.intercon.com!psinntp!monymsys!sonyd1.broadcast.sony.com!blilly.uucp!bruce
References: <C866H1.7ur@borland.com> <C8D6AA.E37@math.uwaterloo.ca> <C8DAsu.1y5@math.uwaterloo.ca> <C8FEzr.1o0@borland.com>

Show Full Headers
Complete Article Headers
Message-ID: <C8Gn84.2qz@blilly.uucp>
Subject: Re: trn kill(0) instead if kill(SIGEMT)
Date: Fri, 11 Jun 1993 14:07:11 +0000
From: bruce@blilly.uucp (Bruce Lilly)
References: <C866H1.7ur@borland.com> <C8D6AA.E37@math.uwaterloo.ca> <C8DAsu.1y5@math.uwaterloo.ca> <C8FEzr.1o0@borland.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!yale.edu!xlink.net!sol.ctr.columbia.edu!usc!wupost!udel!news.intercon.com!psinntp!monymsys!sonyd1.broadcast.sony.com!blilly.uucp!bruce
Newsgroups: news.software.readers,news.software.nntp
Keywords: trn 3.0 ftp overview NOV XOVER thread mthreads
Organization: Bruce Lilly
Reply-To: lilb@sony.compuserve.com (Bruce Lilly)
Lines: 20