On 2001.01.18 16:04:02 +0100 Joachim Backes wrote:
>
> On 18-Jan-2001 Sven Neumann wrote:
> > "Timothy M. Shead" <[EMAIL PROTECTED]> 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().
> >
g_print()???? That prints data to the stdout (terminal), but not to the
stdin of the sister app (I tried, it didn´t work).
>
> Hi, please don't forget
>
> pclose(),
>
> otherwise you will get zombies!
>
uhm.... I just kill the app called by popen() at the exit call... I guess
that does the same trick:
system(kill -INT a_command); // the app needs a SIGINT, not a SIGKILL
Thanks for the suggestion, though :-) (when first testing the app, I
suddenly realized my ps -aux showed a lot of processes that should be
dead....;-) )
Ronald
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list