linux-mips
[Top] [All Lists]

Re: fork() vs vfork()

To: kjlin <kj.lin@viditec-netmedia.com.tw>
Subject: Re: fork() vs vfork()
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Thu, 20 Sep 2001 13:29:35 +0200
Cc: linux-mips@oss.sgi.com
In-reply-to: <05e901c141a0$a03e6120$056aaac0@kjlin>; from kj.lin@viditec-netmedia.com.tw on Thu, Sep 20, 2001 at 02:51:08PM +0800
References: <05e901c141a0$a03e6120$056aaac0@kjlin>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Thu, Sep 20, 2001 at 02:51:08PM +0800, kjlin wrote:
> From: "kjlin" <kj.lin@viditec-netmedia.com.tw>
> To: <linux-mips@oss.sgi.com>
> Subject: fork() vs vfork()
> Date: Thu, 20 Sep 2001 14:51:08 +0800
> 
> Hi all,
> 
> How does linux-mips treat the vfork() function?
> I can see the fork() implemented in syscall.c as following:
> 
> save_static_function(sys_fork);
> static_unused int _sys_fork(struct pt_regs regs)
> {
>         int res;
>         res = do_fork(SIGCHLD, regs.regs[29], &regs, 0);
>         return res;
> }

> Why not do the same "sys_vfork" in linux-mips?
> Does it mean that MIPS does not support vfork() or vfork() is equal to fork() 
> in MIPS platform?

Hint: save_static_function is a macro.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>