git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use non-zero data
[tridge/junkcode.git]
/
iotest.c
1
#include <stdio.h>
2
#include <unistd.h>
3
4
main()
5
{
6
int pid;
7
8
if ((pid=fork()) != 0) {
9
int i = 0;
10
while (1) {
11
printf("%d\n", i++);
12
fflush(stdout);
13
sleep(1);
14
}
15
}
16
sleep(1000);
17
}