Re: [gtk-list] Re: fork() with gtk ?



James Bailie wrote:
> 
> On Tue, Jul 13, 1999 at 10:25:13AM +0200, Norbert Bladt wrote:
> > Would using "popen" be a bad solution for this case ?
> > In this way you can show a progressbar during the "formatting"
> > but have to process the GUI events.
> >
> > What is the opinion of the members of this list ?
> 
> You must do:
> 
>    #include "gdk/gdkx.h"
>    close( ConnectionNumber( gdk_display ));
> 
> before popen(), as popen() does not close open descriptors.
Thanks for your answer.
However, it is much more difficult to cancel the operation on user's
demand once you've started something like popen("lpr -Pxxx").

Norbert.

-- 
Norbert Bladt		 Payphone Management System Software Development
ascom Autelca AG
Worbstrasse 201		 CH-3073 Guemligen, Switzerland
abladtn@autelca.ascom.ch VOICE: +41 31 999 6552, FAX: +41 31 999 6575



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