Re: clone testcases in LTP

From: Nathan Straz <nstraz_at_sgi.com>
Date: 2003-07-12 00:15:08
On Fri, Jul 11, 2003 at 11:57:30AM +0200, Andreas Schwab wrote:
> Peter Chubb <peter@chubb.wattle.id.au> writes:
> |> I'm not finding that clone2() works -- We get a segfault in the cloned
> |> process when it returns.
> 
> You can't return from the function, only exit() or _exit() works.

That seems really odd that you can't return from the function.  The
clone man page (dated 2001-06-26) says either way is an option.  I did
test it with the explicit exit() call and that does clean up the
SIGSEGV.
-- 
Nate Straz                                              nstraz@sgi.com
sgi, inc                                           http://www.sgi.com/
Linux Test Project                                  http://ltp.sf.net/
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Jul 11 10:15:55 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:16 EST