Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2003 22:05:20 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        arch@FreeBSD.ORG
Cc:        Gregory Bond <gnb@itga.com.au>
Subject:   Re: NEWSYSLOG changes, signal process groups
Message-ID:  <p05200f05ba8b1739b899@[128.113.24.47]>
In-Reply-To: <p05200f28ba8438f443e5@[128.113.24.47]>
References:  <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <p05200f08ba7b59fffe0a@[128.113.24.47]> <p05200f1fba807dbb60c0@[128.113.24.47]> <200302251255.48219.wes@softweyr.com> <p05200f22ba81b269ba0f@[128.113.24.47]> <p05200f23ba81f4af4286@[128.113.24.47]> <p05200f28ba8438f443e5@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help

In pr=28435 there was a request that newsyslog know how to signal
a process-group, as well as just a single process.  I have added
a 'U' flag for config-file entries, which indicates that the
pid_file contains the id of a process group.  The value in that
file is expected to be a negative number (which I assume has to
be in the negative range of valid process numbers).

My patch for this is in:
http://people.freebsd.org/~gad/newsyslog/4-sigpgrp.diff

First I basically rewrote/reorganized the get_pid() routine,
partially to get better error-checking.  Then I checked what
OpenBSD has in this area, and included a number of ideas from
their start_signal() routine (including renaming the routine).

Let me know of any feedback for this change.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05200f05ba8b1739b899>