summaryrefslogtreecommitdiff
path: root/source3/lib/pthreadpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/pthreadpool.c')
-rw-r--r--source3/lib/pthreadpool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/pthreadpool.c b/source3/lib/pthreadpool.c
index c5f2b41265..b62bab0a2e 100644
--- a/source3/lib/pthreadpool.c
+++ b/source3/lib/pthreadpool.c
@@ -333,8 +333,8 @@ static void *pthreadpool_server(void *arg)
* time, exit this thread.
*/
- clock_gettime(CLOCK_REALTIME, &timeout);
- timeout.tv_sec += 1;
+ timeout.tv_sec = time(NULL) + 1;
+ timeout.tv_nsec = 0;
while ((pool->jobs == NULL) && (pool->shutdown == 0)) {