lkml.org 
[lkml]   [2005]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel error in system call accept() under kernel 2.6.8
On Tue, Sep 20, 2005 at 05:32:49PM +0200, Peter Duellings wrote:
> Right. But before Log.Log is called arguments of methods are
> copied on the stack. That means, also the current content of
> errno is copied. And "current" means in that case before the call
> to Log.Log is performed (errno is transferred by value - not by
> reference).

And strerror_r() modifies errno. You can't rely on the order arguments
to functions are evaluated in.

-ben
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-20 17:38    [W:0.039 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site