From: Carlo E. P. <fl...@fl...> - 2011-09-25 09:33:58
|
>From within a GTK loop, I need to fork independent processes, that the main process must forget about. If after fork() I call exec(), thus eventually calling a new instance of the Ruby interpreter, all goes OK. If, instead, I call a Ruby method, I can then leave the main loop and get back to the system prompt, but the GTK window will not disappear until the daemon completes. Look at the attached test program. If I run it, and then click on the provided button, the sub-process that sleeps for a long time will be started and appropriately daemonized, and I will be back to the shell prompt, but the small window will not disappear from my screen until either the process terminates or I kill it. It is not repainted anymore (remains all grey), but it remains there nevertheless. Am I overlooking something? I use Linux (current kernel), the latest Ruby from SVN and the latest Ruby-gnome2 from git. Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fl...@fl... che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu) |