kill the child process



Hi

i have done a function to close
the gtk main and the child process

the function is similar to:

*******
kill(child_proc,SIGKILL)
gtk_main_quit ();
***********
in the child process thre's a while (1) loop

if i start the program from the desktop
when i click the exit button that run the funztion to quit the program
my system crash and the x server restart.....(ho my god!)


how can i kill the child without problem?

thank you



-- 

----
*************************************************************
                      Universe Creation 
 ....and God wrote:
                      tar -Uvh BigBeng.tar.gz
#############...unpacking..######################
*************************************************************
Mauro Venanzi linux ru250233
hall2001 athlon-xp rm 135009 on Suse 8.1





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