chiark / gitweb /
063 release
[elogind.git] / klibc / include / sched.h
index fcf62a6e4f275f3d1b7bd4a90b0b3f930125e3e5..3465b5705c837a7c29eaa4d4df95296eb877493b 100644 (file)
@@ -25,7 +25,9 @@ __extern int sched_yield(void);
 __extern pid_t __clone2(int, void *, void *);
 static __inline__ pid_t __clone(int _f, void *_sp)
 {
-  return __clone2(_f, _sp, 0);
+  /* If this is used with _sp != 0 it will have the effect of the sp
+     and rsp growing away from a single point in opposite directions. */
+  return __clone2(_f, _sp, _sp);
 }  
 #else
 __extern pid_t __clone(int, void *);