docs
[mirrors/Programs.git] / c / fork.c
CommitLineData
21c4e167
H
1#include <stdio.h>
2#include <stdlib.h>
3
4int test = 1;
5int main(void) {
6 int *ptr;
7 ptr = &test;
8 if(!fork()) {
9 *ptr = 2;
10 return;
11 }
12 while(test == 1) printf("");
13 printf("lol\n");
14}
This page took 0.213061 seconds and 4 git commands to generate.