Module Name:    src
Committed By:   joerg
Date:           Fri Dec 16 23:19:28 UTC 2011

Modified Files:
        src/lib/librumpclient: rumpclient.h

Log Message:
Request always_inline for rumpclient__dofork, it won't work correctly
for vfork otherwise. Also give it the returns twice attribute to ensure
that the stack tainting is done recursively.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/librumpclient/rumpclient.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumpclient/rumpclient.h
diff -u src/lib/librumpclient/rumpclient.h:1.10 src/lib/librumpclient/rumpclient.h:1.11
--- src/lib/librumpclient/rumpclient.h:1.10	Wed Feb 16 22:35:41 2011
+++ src/lib/librumpclient/rumpclient.h	Fri Dec 16 23:19:28 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpclient.h,v 1.10 2011/02/16 22:35:41 tron Exp $	*/
+/*	$NetBSD: rumpclient.h,v 1.11 2011/12/16 23:19:28 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -65,7 +65,7 @@ int rumpclient__closenotify(int *, enum 
  * vfork needs to be implemented as an inline to make everything
  * run in the caller's stackframe.
  */
-static inline pid_t
+static __attribute__((__always_inline__)) __returns_twice inline pid_t
 rumpclient__dofork(pid_t (*forkfn)(void))
 {
 	struct rumpclient_fork *rf;

Reply via email to