lkml.org 
[lkml]   [2004]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: kernel threads holding /dev/console
From
Date
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.027 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site