/* * (C) 2011 Ingo Saitz * * Redistribution and use in source and binary forms, with or * without modification, are permitted. */ #include int main(){ int p = fork(); if(p) { printf("Zombie process created, pid = %d\n", p); for(;;) sleep(1000); } else /* let the child die with return code */ return 1; }