Re: Which syscall is used for creating new process/thread on OpenBSD

2013-09-16 Thread niXman
2013/9/13 Ted Unangst: >> I have two questions: >> 1. Is my statement correct? > > somewhat. fork() would be the syscall more likely to create a new > process. and tfork() is actually spelled __tfork(). > >> 2. Shouldn't 'vfork()' and 'tfork()' finally use a single system call >> like 'clone()'? >

Re: Which syscall is used for creating new process/thread on OpenBSD

2013-09-13 Thread Martijn van Duren
On Fri, 2013-09-13 at 11:10 +0400, niXman wrote: > Hi, > > [intro]This question was originally asked on StackOverflow, but so far > I have not get a response.[/intro] > > In Linux, 'clone()' syscall is used for creating processes/threads. > > On OpenBSD using ktrace/kdump I determined that for p

Re: Which syscall is used for creating new process/thread on OpenBSD

2013-09-13 Thread Ted Unangst
On Fri, Sep 13, 2013 at 11:10, niXman wrote: > On OpenBSD using ktrace/kdump I determined that for process creation > 'vfork()' syscall is used, and for thread creation - 'tfork()'. > > I have two questions: > 1. Is my statement correct? somewhat. fork() would be the syscall more likely to create

Which syscall is used for creating new process/thread on OpenBSD

2013-09-13 Thread niXman
Hi, [intro]This question was originally asked on StackOverflow, but so far I have not get a response.[/intro] In Linux, 'clone()' syscall is used for creating processes/threads. On OpenBSD using ktrace/kdump I determined that for process creation 'vfork()' syscall is used, and for thread creatio