Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2002 15:00:56 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: kernel daemon clean up
Message-ID:  <20020520150021.S63789-100000@resnet.uoregon.edu>
In-Reply-To: <Pine.SOL.4.21.0205201646300.19638-100000@onyx>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 May 2002, Zhihui Zhang wrote:

>
> 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.

I don't think kthreads can take signals (?)

Look at the code for the other kthreads that put out the 'waiting for XXX
to finish' messages during the shutdown sequence.

Doug White                    |  FreeBSD: The Power to Serve
dwhite@resnet.uoregon.edu     |  www.FreeBSD.org


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




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