Date: Fri, 14 Jul 2006 17:35:14 +0300 From: mykola.stryebkov@gmail.com To: Simon 'corecode' Schubert <corecode@fs.ei.tum.de> Cc: hackers@freebsd.org, Mykola Stryebkov <mykola.stryebkov@gmail.com> Subject: Re: fork inside ip_input Message-ID: <20060714143514.GA2838@taran.infoua.com.ua> In-Reply-To: <44B7A2C8.7050407@fs.ei.tum.de> References: <20060714134953.GA2404@taran.infoua.com.ua> <44B7A2C8.7050407@fs.ei.tum.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 14.07.2006 15:57:28, Simon 'corecode' Schubert wrote: > Mykola Stryebkov wrote: > >Hi all. > > > >Have a strange question: is it possible to create new process (using > >fork or fork1) from inside of ip_input()? > > i don't think so. > > >In kernel sources i found example of using fork1 in init_main.c but > >looking into ip_input.c i do not understand where i can get pointers to > >a thread and parent process to pass it into fork1. > > only a process can fork, but ip_input is run from interrupt, not in a > process context. which process do you want to fork anyways? I want to start user-level process on first incoming RTP packet to install and keep TCP control connection. -- Nick Strebkov Public key: http://humgat.org/~nick/pubkey.txt fpr: 552C 88D6 895B 6E64 F277 D367 8A70 8132 47F5 C1B6
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060714143514.GA2838>