Partial implementation of syscall fork()