All pastes #23963 Raw Edit

Mine

public text v1 · immutable
#23963 ·published 2005-09-26 16:29 UTC
rendered paste body
#include <sys/types.h>
#include <unistd.h>


int main()
{
        pid_t pid;

        pid = fork();

        if(pid) {
                printf("I am child\n");
                return 1;
        }
        else
                printf("I am parent\n");
        return 1;
}