mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r12797: check for a error
metze
This commit is contained in:
parent
ba97e7c06a
commit
ed4fbfcf3e
@ -405,9 +405,10 @@ static uint32_t thread_get_task_id(void)
|
|||||||
|
|
||||||
static void thread_log_task_id(int fd)
|
static void thread_log_task_id(int fd)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s= NULL;
|
||||||
|
|
||||||
asprintf(&s, "thread %u: ", (uint32_t)pthread_self());
|
asprintf(&s, "thread %u: ", (uint32_t)pthread_self());
|
||||||
|
if (!s) return;
|
||||||
write(fd, s, strlen(s));
|
write(fd, s, strlen(s));
|
||||||
free(s);
|
free(s);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user