Re: XForms: Forking Behaviour

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 20 May 97 15:01:17 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> Is there a way to close this file descriptor in a child process? The
> child processes I'm starting don't need to have any access to graphics at
> all, but *do* need to be started after the fl_initialize routine is
> called.

I guess first off I'd have to ask myself if this *is* absolutely
necessary and redesign the code if it was not.

> Is some permutation on
>
> close (ConnectionNumber(XtDisplay(widget)));
>
> what I want to be happening? If so, how do I get the ConnectionNumber
> for the XForms windows?

I suppose

close( ConnectionNumber( fl_get_display() ) );

should work -- assuming it works at all. :-)

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/