🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #17356

Re: Pasar información de un proceso hijo a un padre?

#17356
From: Gorka Olaizola
Date: Fri, 21 Jan 2000 00:00
25 lines
1680 bytes
El d�a 20 Jan 2000 14:56:57 GMT, J.A. Gutierrez <spd@daphne.cps.unizar.es> escribi�:
-->Gorka Olaizola <gorka@news.hondarribia.org> wrote:
-->
-->: while ( (position=read(descf[0], buffer, MAX_BUF-1)) >0 ) {
-->:                 buffer[position]='\0';
-->:                 printw("%s", buffer);
-->:                 refresh();
-->: }
-->
-->	debe haber algun otro problema; ese bucle deberia acabar
-->	cuando el hijo cierra la tuberia...
-->
Gracias, ya lo he arreglado. Deb�a ser que yo no hab�a cerrado el descriptor de
lectura de la tuber�a en el hijo, y por eso no me la cerraba al acabar.

-- 
     |||
    (- -)
 oOOo(_)oOOo-----------------------------------
|   "Smile... tomorrow will be worse." Murphy  |
|----------------------------------------------|
| olsago@jet.es                                |
| http://personales.jet.es/olsago/             |
| http://fly.to/luzluciernaga	               |
 ----------------------------------------------
Technical Details
Message-ID: <slrn88gei5.4rg.gorka@conan.hondarribia.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn88dq8r.rv7.gorka@conan.hondarribia.org> <8677np$s6t$1@news.unizar.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,af3250f298097218
X-Google-Attributes: gidf86c8,public
From: gorka@news.hondarribia.org (Gorka Olaizola)
Subject: Re: Pasar información de un proceso hijo a un padre?
Date: 2000/01/21
Message-ID: <slrn88gei5.4rg.gorka@conan.hondarribia.org>
X-Deja-AN: 575704268
Content-Transfer-Encoding: 8bit
References: <slrn88dq8r.rv7.gorka@conan.hondarribia.org> <8677np$s6t$1@news.unizar.es>
Content-Type: text/plain; charset=iso-8859-1
Organization: Poca organización
Mime-Version: 1.0
User-Agent: slrn/0.9.5.3 (UNIX)
Reply-To: olsago@jet.es
Newsgroups: es.comp.os.linux.programacion