Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2004 13:37:32 +0400
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        Robert Watson <rwatson@freebsd.org>
Subject:   Re: linker_load_module(NULL, "modname", ...) from thread with no user	process
Message-ID:  <20040719093732.GA48459@cell.sick.ru>
In-Reply-To: <40FB533D.2080208@elischer.org>
References:  <Pine.NEB.3.96L.1040719003147.37108w-100000@fledge.watson.org> <40FB533D.2080208@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 18, 2004 at 09:51:09PM -0700, Julian Elischer wrote:
J> Probably the onl thing to do is to refuse to try an load the modules if 
J> you are not running
J> in the context of a process..

What about adding this check to ng_make_node()? It works for me OK.

                if (curthread->td_ithd != NULL)
                        return(EAGAIN);

Or even to linker_load_module()?

And possibly EAGAIN is not the best choice.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE



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