Re: XForms: Forking Behaviour

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 20 May 97 11:32:56 PDT

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

> I'm currently migrating a program from 0.84 to 0.86.1 and I'm noticing
> some strange behaviour after I fork off a child process.
>
> [...]
>
> I'm forking off my child processes with fork().
>
> This behaviour wasn't observed under 0.84.
>
> Is there anything I have to do before executing a fork() call? I'm not
> running graphics in the child process.

My guess is that you were lucky in the 0.84 version.

Try executing the fork() prior to starting up XForms. This way only
one process has control of the file descriptor talking to the X
server. Remember, the child process gets copies of the parent's file
descriptors and X will no doubt get very confused in this situation.

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/