From owner-freebsd-isdn Fri Jul 14 1:39:54 2000 Delivered-To: freebsd-isdn@freebsd.org Received: from malcolm.ailis.de (malcolm.ailis.de [62.159.58.30]) by hub.freebsd.org (Postfix) with SMTP id 5963137BE32 for ; Fri, 14 Jul 2000 01:39:52 -0700 (PDT) (envelope-from drt@ailis.de) Received: (qmail 6677 invoked by uid 1002); 14 Jul 2000 08:38:12 -0000 Date: Fri, 14 Jul 2000 10:38:12 +0200 From: "Doobee R . Tzeck" To: freebsd-isdn@freebsd.org Subject: Calling a programm *before* the line is taken down. Message-ID: <20000714103812.A6553@malcolm.ailis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm investigating ways to execute commands just before an isp connection is taken down. This should help deregistering at certain network services, notably at a dynamic dns server. It seems to me, I have to find all calls to N_DISCONNECT_REQUEST in i4bdrv.c and i4bl4.c and chage them to sending a special Message like WILL_DISCONECT_IND to userland, wait 5 seconds and then disconnect. But as far as I understand I can't just sleep(5); Any hints how to implement such a thing? drt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message