Re: XForms: fl_finish atexit and child processes

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 29 Jan 98 07:49:49 PST

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

> If you register fl_finish using atexit to nicely disconnect from X server at
> program termination then you have a problem with child processes which exit
> or die. In such a case the X server connection is prematurely terminated.
> This is because the child process also has fl_finish registered.

Why register it in the first place? XForms should clean up the client
correctly by default.

This is a hack, but you could write a little wrapper for fl_finish()
which tests to see if it's the parent or the child and acts
appropriately.

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://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/