diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-12-16 13:02:21 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-12-16 13:02:21 +0100 |
commit | d28d3ba40dc8ebef87199a2567ec96e9c5d744e2 (patch) | |
tree | c6b9ab1d8193fa2a26c5e376d43e536abd3a47ce /mysys | |
parent | ff485d2dc4d5adaf5eef0ccd03ce62adf3bd30b3 (diff) | |
parent | 6bf10fac445d73fb796d4863612c87bff5f28b66 (diff) | |
download | mariadb-git-d28d3ba40dc8ebef87199a2567ec96e9c5d744e2.tar.gz |
10.0-base merge
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_addr_resolve.c | 4 | ||||
-rw-r--r-- | mysys/my_winthread.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/mysys/my_addr_resolve.c b/mysys/my_addr_resolve.c index e5a3a5fe13b..90e6f43f390 100644 --- a/mysys/my_addr_resolve.c +++ b/mysys/my_addr_resolve.c @@ -153,6 +153,10 @@ int my_addr_resolve(void *ptr, my_addr_loc *loc) while (*s != ':') s++; *s++= 0; + + if (strcmp(loc->file, "??") == 0) + return 1; + loc->line= 0; while (isdigit(*s)) loc->line = loc->line * 10 + (*s++ - '0'); 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); } |