Re: popen() works, but now?



On 18-Jan-2001 Sven Neumann wrote: 
>  "Timothy M. Shead" <tshead k-3d com> writes:
>  
> > I believe the output from fprintf is buffered - you probably need to 
> > flush the stream:
> > 
> > fflush(some_pipe);
>  
>  or better yet, use g_print().
>  
>  
>  Salut, Sven

Hi, please don't forget

     pclose(),

otherwise you will get zombies!



Joachim Backes

--

Joachim Backes <backes rhrk uni-kl de>       | Univ. of Kaiserslautern
Computer Center, Supercomputing Division     | Phone: +49-631-205-2438 
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 
---------------------------------------------+------------------------
WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html  





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]