From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 14 14:35:26 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E00016A4DA for ; Fri, 14 Jul 2006 14:35:26 +0000 (UTC) (envelope-from mykola.stryebkov@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6ACBB43D49 for ; Fri, 14 Jul 2006 14:35:25 +0000 (GMT) (envelope-from mykola.stryebkov@gmail.com) Received: by wx-out-0102.google.com with SMTP id s13so272400wxc for ; Fri, 14 Jul 2006 07:35:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:from; b=kUxDnCo7a0qQa+iRppnx2mVQQ29mWyh+ouxPsVckLsXvOp04EN11hCULlqaSNyQXDYYTHhAPB5cySzHih3D39mB3/ugS+TS/sW5DCNgEh6dX6Y6YYxqW6HbpsWGIGz0QLHsnTNyiSPklte/jOHK2cSq09ii0VyRUPpn8YsaxN8Y= Received: by 10.70.98.2 with SMTP id v2mr3164398wxb; Fri, 14 Jul 2006 07:35:22 -0700 (PDT) Received: from localhost ( [70.86.106.246]) by mx.gmail.com with ESMTP id i18sm3384883wxd.2006.07.14.07.35.16; Fri, 14 Jul 2006 07:35:18 -0700 (PDT) Date: Fri, 14 Jul 2006 17:35:14 +0300 To: Simon 'corecode' Schubert Message-ID: <20060714143514.GA2838@taran.infoua.com.ua> Mail-Followup-To: nick@humgat.org, Simon 'corecode' Schubert , Mykola Stryebkov , hackers@freebsd.org References: <20060714134953.GA2404@taran.infoua.com.ua> <44B7A2C8.7050407@fs.ei.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-u Content-Disposition: inline In-Reply-To: <44B7A2C8.7050407@fs.ei.tum.de> User-Agent: Mutt/1.4.2.1i From: mykola.stryebkov@gmail.com Cc: hackers@freebsd.org, Mykola Stryebkov Subject: Re: fork inside ip_input X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2006 14:35:26 -0000 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