X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=klibc%2Finclude%2Fsched.h;h=3465b5705c837a7c29eaa4d4df95296eb877493b;hb=8365854ccda3d0f36333b699454238cff111e169;hp=fcf62a6e4f275f3d1b7bd4a90b0b3f930125e3e5;hpb=60d1e263f0da2976938fa54efec88ab777a6b3c3;p=elogind.git diff --git a/klibc/include/sched.h b/klibc/include/sched.h index fcf62a6e4..3465b5705 100644 --- a/klibc/include/sched.h +++ b/klibc/include/sched.h @@ -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 *);