FS-2746 --resolve large xmlrpc update thanks garmt

This commit is contained in:
Jeff Lenk committed 2012-10-13 11:37:25 -05:00
1 parent 37ecad9903
commit 6b6c83a718
397 files changed
+41821 -33840

No files matched your search

+10 -1
View File
@@ -157,6 +157,7 @@ ThreadCreate(TThread ** const threadPP,
TThreadProc * const func,
TThreadDoneFn * const threadDone,
bool const useSigchld,
size_t const stackSize,
const char ** const errorP) {
TThread * threadP;
@@ -189,6 +190,9 @@ ThreadCreate(TThread ** const threadPP,
else if (rc == 0) {
/* This is the child */
(*func)(userHandle);
/* Note that thread cleanup (threadDone) is done by the _parent_,
upon seeing our exit.
*/
exit(0);
} else {
/* This is the parent */
@@ -249,7 +253,8 @@ ThreadWaitAndRelease(TThread * const threadP) {
void
ThreadExit(int const retValue) {
ThreadExit(TThread * const threadP ATTR_UNUSED,
int const retValue) {
/* Note that the OS will automatically send a SIGCHLD signal to
the parent process after we exit. The handler for that signal
@@ -259,6 +264,10 @@ ThreadExit(int const retValue) {
sees we've gone.
*/
/* Note that thread cleanup (threadDone) is done by the _parent_,
upon seeing our exit.
*/
exit(retValue);
}