FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


can we fork





umeshtangnu
hi
i have code that i have to implement in c#
Code:


/* 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);
                        }
                }
        }




i know the code is creating child process mine question is can we do fork in c# or is there any other method to do so eg threading etc
Tex_Arcana
Not unless you get me really, really drunk first. Laughing

By the way your post generated some really interesting combinations of Google adds.
umeshtangnu
well i would get you drunk but only if you can answer mine question
well they would its not the first forum i have asked this question
Related topics
3 Jokes
20 Frih$
mIRC for begginers.
Dose Anybody Know Where to find Photoshop pro Free Software.
Island Natives!!
Creating a new Operating System
I've had it with php-nuke, time to say goodbye
Xbox 360 Pricing
Domain Question!
[COMMUNITY PROJECT]Frihost Forum
Does anyone know where I could get a FREE domain name?
Hurting yourself on accident
Fork and mutual exclusion
Possibly going to fork some code
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.