From owner-freebsd-hackers Mon May 20 13:52:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 1636837B43B for ; Mon, 20 May 2002 13:52:14 -0700 (PDT) Received: from onyx ([128.226.182.171]) by bingnet2.cc.binghamton.edu (8.11.6/8.11.6) with ESMTP id g4KKqCB05606 for ; Mon, 20 May 2002 16:52:12 -0400 (EDT) Date: Mon, 20 May 2002 16:52:11 -0400 (EDT) From: Zhihui Zhang X-Sender: zzhang@onyx To: freebsd-hackers@freebsd.org Subject: kernel daemon clean up Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG When we reboot a machine, it seems to me that the kernel sends signal 15 to daemons and wait 60 seconds for them to finish. In my program, I use kthread_create() to create a daemon, how to make sure that my daemon finishes all its job before reboot can proceed? Do I need to let the daemon catch the signals? I tried kill -9 (or -15) pid, the daemon does not seem to respond. Thanks, -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message