diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-11-23 00:50:54 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-11-23 00:50:54 +0100 |
commit | c6d30805db3a1a2a098c3009fde8a42efd9fb9de (patch) | |
tree | e55f68e5adf40e1a75e08bda91b712ab6a094643 /mysys | |
parent | 2c032b990e4ec470fad2e9f61cf6267a68b7e937 (diff) | |
parent | eea310e498f3b7ac95a4492d48f04e08d3009412 (diff) | |
download | mariadb-git-c6d30805db3a1a2a098c3009fde8a42efd9fb9de.tar.gz |
5.5 merge
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_winthread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mysys/my_winthread.c b/mysys/my_winthread.c index b77581fae78..d7d7817d400 100644 --- a/mysys/my_winthread.c +++ b/mysys/my_winthread.c @@ -68,6 +68,7 @@ int pthread_create(pthread_t *thread_id, const pthread_attr_t *attr, uintptr_t handle; struct thread_start_parameter *par; unsigned int stack_size; + int error_no; DBUG_ENTER("pthread_create"); par= (struct thread_start_parameter *)malloc(sizeof(*par)); @@ -88,9 +89,10 @@ int pthread_create(pthread_t *thread_id, const pthread_attr_t *attr, DBUG_RETURN(0); error_return: + error_no= errno; DBUG_PRINT("error", - ("Can't create thread to handle request (error %d)",errno)); - DBUG_RETURN(-1); + ("Can't create thread to handle request (error %d)",error_no)); + DBUG_RETURN(error_no); } |