More info on GDK/GTK with fork() and exec()



Here's some more detail about what was going on (regarding
the previous post).

The xscreensaver-demo apparently calls:

fork()
exec()

In that order, to execute a demo. This (on my side) causes GDK to
crash and loose connection to the X server and also crash the parent
process.

My suggestion and my own practice is to test if the object
existed before attempting to execute it, as follows:

if(!stat())
{
 fork()
 exec()
}


However Jamie stated that this was pointless, and that it was
okay to use fork() and exec() in GDK without testing the
validility of the object.

I'd like to know if this is correct or not so that I can
verify that it's a problem with my GTK+ 1.2.10 or not.


--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/



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