Julia has more sophisticated multi-processing tools but I want to experiment with some low level options. I expected this code to print the child pid from the parent and 0 from the child but it only prints from the parent and
signal (6): Aborted
What is going wrong?
function main()
pid = ccall(:fork, Cint, ())
println(pid)
while true
end
end
if abspath(PROGRAM_FILE) == @__FILE__
main()
end