Date: Sat, 29 Jul 2000 04:34:04 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/i386/gen rfork_thread.S Message-ID: <200007291134.EAA38997@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
peter 2000/07/29 04:34:04 PDT Modified files: lib/libc/i386/gen rfork_thread.S Log: Fix some rather interesting bugs that managed to not turn up in various testing and real-life applications: 1) If you returned from the thread function, you got a segv instead of calling _exit() with your return code. 2) clean up some bogus stack management. There was also an underflow on function return. 3) when making syscalls, the kernel is expecting to have to leave space for the function's return address. We need to duplicate this. It was an accident that the rfork syscall actually worked here. :-/ Revision Changes Path 1.2 +6 -6 src/lib/libc/i386/gen/rfork_thread.S To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007291134.EAA38997>