This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
[Bambo@bambo-notebook 4.4.4]$ cat tvfork.c #include <sys/types.h> #include <unistd.h> #include <stdio.h>
int main(void) { pid_t pid = vfork(); if ( pid > 0 ) { printf("I'm chield.\n"); _exit(0); } else if ( pid == 0 ) { printf("I'm parent"); }
-- Matthias Andree
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |