🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by John Buchanan Sun, 18 Jun 2023 01:19
Bug in kill ???
#1
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads