From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CH27k-00050Q-7w for qemu-devel@nongnu.org; Mon, 11 Oct 2004 11:30:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CH27j-00050E-K8 for qemu-devel@nongnu.org; Mon, 11 Oct 2004 11:30:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CH27j-00050B-FK for qemu-devel@nongnu.org; Mon, 11 Oct 2004 11:30:07 -0400 Received: from [64.233.170.205] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CH20b-0005ty-Tj for qemu-devel@nongnu.org; Mon, 11 Oct 2004 11:22:46 -0400 Received: by mproxy.gmail.com with SMTP id 73so500236rnl for ; Mon, 11 Oct 2004 08:22:37 -0700 (PDT) Message-ID: <2ad73a0410110822151a58fc@mail.gmail.com> Date: Mon, 11 Oct 2004 12:22:37 -0300 From: =?ISO-8859-1?Q?Andr=E9_Braga?= Subject: Re: [Qemu-devel] new feature: attach a process to emulated serial port In-Reply-To: <20041011142629.C1087@edinburgh.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041011142629.C1087@edinburgh.cisco.com> Reply-To: =?ISO-8859-1?Q?Andr=E9_Braga?= , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, 11 Oct 2004 14:26:30 +0100, Derek Fawcus wrote: > Hmm. How about simply using FIFO's instead, then one doesn't have any > issues with fork/system/etc > > i.e. add options of -serialin -serialout and have -serial > set both of the above. Then one can simply do: > > mkfifo /tmp/serin /tmp/serout > anycmd < /tmp/serout > /tmp/serin & > qemu ... -serialin /tmp/serin -serialout /tmp/serialout That would make this feature available only on operating systems that support user-created named pipes. IOW, named pipes do exist on Windows, but they're not easy to access by the user. Forking is a more universal approach, as I see it. cheers, A. -- "A year spent in artificial intelligence is enough to make one believe in God" Alan J. Perlis