From owner-freebsd-current Tue Nov 10 14:02:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA23216 for freebsd-current-outgoing; Tue, 10 Nov 1998 14:02:37 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA23165; Tue, 10 Nov 1998 14:02:23 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (root@woof.lan.Awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id VAA08907; Tue, 10 Nov 1998 21:34:03 GMT (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id VAA17430; Tue, 10 Nov 1998 21:35:30 GMT (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199811102135.VAA17430@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Sheldon Hearn cc: Dmitry Valdov , Kris Kennaway , Brian Somers , current@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/ppp ip.c In-reply-to: Your message of "Tue, 10 Nov 1998 11:14:37 +0200." <11258.910689277@axl.training.iafrica.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 10 Nov 1998 21:35:29 +0000 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > On Tue, 10 Nov 1998 11:52:33 +0300, Dmitry Valdov wrote: > > > Thanks, will be know. But why not to fix it in ppp? :) > > Hi Dmitry, > > Even if ppp does the route cleanup for you, a signal 9 (KILL) doesn't > allow it to attempt graceful exit. This means that building cleanup code > into ppp would not "fix it in ppp", since the code would never be > reached once a SIGKILL is received. > > Assuming you _want_ to send ppp a SIGKILL instead of SIGTERM, your best > bet is to run ppp from a shell wrapper script and put the route cleanup > in the script, after the line that runs ppp. > > It would be nicer, though, if you could send ppp a SIGTERM instead. I > remember that this wasn't always feasible last year when I used to use > ppp (sometimes SIGTERM would have no apparent effect), but it's worth > checking to see whether the software doesn't respond to this signal if > you haven't checked already. A SIGTERM followed by a SIGINT will now bring ppp down immediately irrespective of the current mode. A ``pppctl .... down\; quit all'' will also bring it down in a hurry. > Hope this helps, > Sheldon. -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message