summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
13282bc)
... instead of clobbering errno.
Sponsored by: Robert Klemme
#define SELECTED_ONE_OPTION
{
pthread_t the_thread;
#define SELECTED_ONE_OPTION
{
pthread_t the_thread;
- errno = pthread_create(&the_thread, &attrs,
+ ret = pthread_create(&the_thread, &attrs,
(void * (*)(void *))serve, csp);
(void * (*)(void *))serve, csp);
- child_id = errno ? -1 : 0;
+ child_id = ret ? -1 : 0;