hello, is there any replacement for `fork` syscall in Golang?

I've found:

- exec.Command
- syscall.ForkExec

but `exec.Command` can only execute a out side command.

syscall.ForkExec is needless, because what I need is `fork` only.

just like the C-way, fork, and return pid, then I entry different function. 
Is there any solution?

You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to