From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30149 invoked by alias); 4 Dec 2002 13:39:52 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 30098 invoked from network); 4 Dec 2002 13:39:18 -0000 Received: from unknown (HELO serdis.dis.ulpgc.es) (193.145.145.17) by sources.redhat.com with SMTP; 4 Dec 2002 13:39:18 -0000 Received: from siglo21.dis.ulpgc.es (IDENT:root@siglo21.dis.ulpgc.es [193.145.145.16]) by serdis.dis.ulpgc.es (8.10.2/8.9.2) with ESMTP id gB4Dmk772927 for ; Wed, 4 Dec 2002 13:48:47 GMT Received: (from nobody@localhost) by siglo21.dis.ulpgc.es (8.11.6/8.9.3) id gB4EaaP03992; Wed, 4 Dec 2002 14:36:36 GMT Date: Wed, 04 Dec 2002 05:39:00 -0000 Message-Id: <200212041436.gB4EaaP03992@siglo21.dis.ulpgc.es> X-Authentication-Warning: siglo21.dis.ulpgc.es: nobody set sender to a2782@dis.ulpgc.es using -f From: a2782@dis.ulpgc.es To: gdb@sources.redhat.com Reply-To: a2782@dis.ulpgc.es MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP3 Imap webMail Program 2.0.11 Subject: Pipe question X-SW-Source: 2002-12/txt/msg00072.txt.bz2 Hi to all! First, I want to thank Eli Zaretskii, Jim Blandy, Kris Warkentin, Keith Seitz and Joel Brobecker for their advices about communication with GDB. Now, a question. I\'m doing this: pipe(togdb); pipe(fromgdb); if (fork() != 0) { close(togdb[0]); close(fromgdb[1]); } else { /* This is necessary for my GUI */ int Max = sysconf(_SC_OPEN_MAX); for (int i=STDERR_FILENO+1;i