From owner-freebsd-arch Tue Mar 4 19: 5:25 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5023437B401 for ; Tue, 4 Mar 2003 19:05:24 -0800 (PST) Received: from smtp1.server.rpi.edu (smtp1.server.rpi.edu [128.113.2.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E2F743FD7 for ; Tue, 4 Mar 2003 19:05:23 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp1.server.rpi.edu (8.12.8/8.12.7) with ESMTP id h2535L5I023262; Tue, 4 Mar 2003 22:05:21 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302251255.48219.wes@softweyr.com> Date: Tue, 4 Mar 2003 22:05:20 -0500 To: arch@FreeBSD.ORG From: Garance A Drosihn Subject: Re: NEWSYSLOG changes, signal process groups Cc: Gregory Bond Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.28 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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