[gnet] Question about gnet echoserver-gserver example



i am reading 

and I have a question below in the gnet
echoserver-gserver example:
  signal (SIGINT, ob_sig_int);

  /* Start the main loop */
  g_main_run(main_loop);

why we signal 'SIGINT' before the main loop?
and the implementation of ob_sig_int is the *DELETE*
the ob_server? Why we do that? why delete teh
ob_server before the main loop?

Thank you,


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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