🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi
Article #1

Bug in kill ???

#1
From: John Buchanan
Date: Sun, 18 Jun 2023 01:19
40 lines
2283 bytes
=======================================================
The environment I am using is a Personal Iris 4d/20 running
IRIX System V Release 4D1-3.14711181642.

=======================================================

Because of a large job that we keep running I am trying to develop a 
utility that checks a variety of conditions. If any of these conditions are
true then the job is to be suspended until the offending condition negates
itself.  The problem that we are having is that a 

kill(pid,SIGSTOP)

seems to outright kill the process.  This process was
started with the following code.

sprintf(ShellLine,"sh -c '%s &   echo $! > /tmp/runalone'",CommandLine);
system(ShellLine);

After this the file /tmp/runalone contains the pid of the process.

The interesting thing is that if the process is started from a regular shell
the kill command behaves as expected but if the job is started up as above
then the kill command simply kills the job when a kill -20 pid is issued.

This works on all the BSD systems that I have tried.  This all leads to a 
couple of questions.

1) Is this a bug or a feature of Sys V
2) How can I start the job so that the signal catcher will work as expected.


John W. Buchanan                  Dynamic Graphics Project
               			  Computer Systems Research Institute
				  University of Toronto
(416) 978-6619			  Toronto, Ontario M5S 1A4

BITNET:		juancho@explorer.dgp.utoronto
EAN:		juancho@explorer.dgp.toronto.cdn
UUCP:		...!mcvax!explorer.dgp.toronto.edu!juancho
Technical Details
Message-ID: <1989Jun7.125930.1198@jarvis.csri.toronto.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!news.novalink.us!.POSTED.2600:8800:3600:135:baca:3aff:fe7c:dafa!utzoo!utgpu!jarvis.csri.toronto.edu!cartier.dgp!juancho

Show Full Headers
Complete Article Headers
Message-ID: <1989Jun7.125930.1198@jarvis.csri.toronto.edu>
Subject: Bug in kill ???
Date: Sun, 18 Jun 2023 01:19:37 +0000
From: juancho@dgp.toronto.edu (John Buchanan)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!news.novalink.us!.POSTED.2600:8800:3600:135:baca:3aff:fe7c:dafa!utzoo!utgpu!jarvis.csri.toronto.edu!cartier.dgp!juancho
Newsgroups: comp.sys.sgi
Organization: University of Toronto, CSRI, DGP
Injection-Date: Sun, 18 Jun 2023 01:19:37 -0000 (UTC)
Injection-Info: novalink.us; posting-host="2600:8800:3600:135:baca:3aff:fe7c:dafa";
Keywords: kill SIGSTOP SIGCONT