summaryrefslogtreecommitdiff
path: root/examples/fork.fy
blob: c49c878edd4688c7734ac12eb6f8d4a160e5b1ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#*
 * Examples of how to use fork
 *#

my pid = fork;

if pid {
	put "I am the parent process and the child has the pid ";
	say pid;
}

ifnot pid {
	say "I am the child process";
}