From: mru@kth.se (Måns Rullgård)
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Rusty Russell <rusty@rustcorp.com.au>
Subject: Re: kernel threads holding /dev/console
Date: Mon, 15 Mar 2004 00:15:41 +0100 [thread overview]
Message-ID: <yw1x4qsrdnqa.fsf@ford.guide> (raw)
In-Reply-To: <20040314150346.387b59a6.akpm@osdl.org> (Andrew Morton's message: 03:46 -0800")
Andrew Morton <akpm@osdl.org> writes:
> mru@kth.se (Måns Rullgård) wrote:
>>
>> I'm trying to set up a pivot_root hack to do some things, switch root,
>> and then unmount the original root. However, the unmount fails
>> because ksoftirqd/0, events/0, kblockd/0 and aio/0 have /dev/console
>> opened. Why are they doing this? Can it be prevented? This happens
>> when using kernel 2.6.3 (2.6.4 is reportedly broken on Alpha). It
>> works with a 2.4 kernel using the same script. Does anyone have a
>> hint?
>
> That's a bug.
>
> keventd and friends are currently holding /dev/console open three times.
> It's all inherited from init.
>
> Steal the relevant parts of daemonize() to fix that up.
That did the trick. Thanks for the quick response.
--
Måns Rullgård
mru@kth.se
prev parent reply other threads:[~2004-03-14 23:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-14 22:27 kernel threads holding /dev/console Måns Rullgård
2004-03-14 23:03 ` Andrew Morton
2004-03-14 23:15 ` Måns Rullgård [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yw1x4qsrdnqa.fsf@ford.guide \
--to=mru@kth.se \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox