In LWP_CreateProcess we take a pid. if it's null, don't crash.
Reviewed-on: http://gerrit.openafs.org/3556
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit
5d218831f3186d0d1dc7d3b00dd4a3b6a4a8757c)
Change-Id: I96c0e2a8858fa929f0de22a774050aa63a200101
Reviewed-on: http://gerrit.openafs.org/9414
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
/* End of gross hack */
Set_LWP_RC();
- *pid = temp;
+ if (pid)
+ *pid = temp;
return 0;
} else
return LWP_EINIT;
/* End of gross hack */
Set_LWP_RC();
- *pid = temp;
+ if (pid)
+ *pid = temp;
return 0;
} else
return LWP_EINIT;
savecontext(Dispatcher, &temp->context, NULL);
LWPANCHOR.outersp = temp->context.topstack;
Set_LWP_RC();
- *pid = temp;
+ if (pid)
+ *pid = temp;
/* get minimum stack size from the environment. this allows the administrator
* to change the lwp stack dynamically without getting a new binary version.
free(lp);
return LWP_ENOMEM;
}
- *pid = lp;
+ if (pid)
+ *pid = lp;
return LWP_SUCCESS;
}
int state;
if (initialized) {
- *pid = lp;
+ if (pid)
+ *pid = lp;
return LWP_SUCCESS;
}
#ifndef LWP_NO_PRIORITIES
MUTEX_INIT(&lwp_mutex, "lwp", MUTEX_DEFAULT, 0);
MUTEX_ENTER(&lwp_mutex);
initialized = 1;
- *pid = lp;
+ if (pid)
+ *pid = lp;
return LWP_SUCCESS;
}