The Samba-Bugzilla – Attachment 5496 Details for
Bug 7248
"tdbtorture" doesn't build
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-tdb-Fix-bug-7248-avoid-the-nanosleep-dependency.patch (text/plain), 941 bytes, created by
Volker Lendecke
on 2010-03-14 14:47:56 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2010-03-14 14:47:56 UTC
Size:
941 bytes
patch
obsolete
>From 9706f481dbb779257e427dae422ac28673381383 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sun, 14 Mar 2010 20:07:58 +0100 >Subject: [PATCH] tdb: Fix bug 7248, avoid the nanosleep dependency > >--- > lib/tdb/tools/tdbtorture.c | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/lib/tdb/tools/tdbtorture.c b/lib/tdb/tools/tdbtorture.c >index 5ee6991..eda79f8 100644 >--- a/lib/tdb/tools/tdbtorture.c >+++ b/lib/tdb/tools/tdbtorture.c >@@ -355,12 +355,12 @@ int main(int argc, char * const *argv) > > pid = waitpid(-1, &status, kill_random ? WNOHANG : 0); > if (pid == 0) { >- struct timespec ts; >+ struct timeval tv; > > /* Sleep for 1/10 second. */ >- ts.tv_sec = 0; >- ts.tv_nsec = 100000000; >- nanosleep(&ts, NULL); >+ tv.tv_sec = 0; >+ tv.tv_usec = 100000; >+ select(0, NULL, NULL, NULL, &tv); > > /* Kill someone. */ > kill(pids[random() % num_procs], SIGUSR1); >-- >1.6.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7248
: 5496