Pliki_SOP/zajecia10/lab_orphan.c

14 lines
141 B
C
Raw Normal View History

2018-12-17 16:58:53 +01:00
#include <stdio.h>
int main(){
int res = fork();
if(res == 0){
sleep(100);
}
else{
printf("Parent\n");
sleep(10);
}
return 0;
}