THIS CODE IS IN C/C++ IN UNIX CAN ANY BODY HELP ME TO CONVERT IT TO 
C# OR ATLEAST GIVE A DECENT TUTORIAL ON THREADING IN C#
 /* Become deamon + unstopable and no zombies children 
           (= no wait()) */
        if(fork() != 0)
                return 0; /* parent returns OK to shell */
        (void)signal(SIGCLD, SIG_IGN); /* ignore child death */
        (void)signal(SIGHUP, SIG_IGN); /* ignore terminal hangups */
        for(i=0;i<32;i++)
                (void)close(i);      /* close open files */
        (void)setpgrp();             /* break away from process group 
*/

                        if((pid = fork()) < 0) {
                        log(ERROR,"system call","fork",0);
                }
                else {
                        if(pid == 0) {  /* child */
                                (void)close(listenfd);
                                web(socketfd,hit); /* never returns */
                        } else {        /* parent */
                                (void)close(socketfd);
                        }
                }
        }





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/XGgtlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Microsofts_C_Sharp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to