Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/Fork/Nim/fork.nim
Normal file
11
Task/Fork/Nim/fork.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import posix
|
||||
|
||||
var pid = fork()
|
||||
if pid < 0:
|
||||
# error forking a child
|
||||
elif pid > 0:
|
||||
# parent, and pid is process id of child
|
||||
else:
|
||||
# child
|
||||
quit()
|
||||
# further Parent stuff here
|
||||
Loading…
Add table
Add a link
Reference in a new issue