git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3003853
)
Many build farm boxes do not have clock_gettime
author
Volker Lendecke
<vl@samba.org>
Fri, 1 May 2009 19:34:12 +0000
(21:34 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 1 May 2009 19:43:25 +0000
(21:43 +0200)
source3/lib/pthreadpool.c
patch
|
blob
|
history
diff --git
a/source3/lib/pthreadpool.c
b/source3/lib/pthreadpool.c
index c5f2b41265ef39366abe25add5c59a4f68b87898..b62bab0a2eed9aea6f9a3b09d06d26b491265c92 100644
(file)
--- 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)) {