EmbLogic's Blog

Author Archives: Sudipto

Fork() and Standard Out

Here is the code snippet of a prog ************** START ********************** #include <stdio.h> #include <sys/types.h> #include <stdlib.h> #include <unistd.h> int glob_var = 100; int main(void) { int var; pid_t pid; var = 200; printf(“++Before Fork()\n”); if((pid = fork()) < 0) … Continue reading

Posted in Linux Internals and System Programming | Leave a comment