summaryrefslogtreecommitdiff
path: root/source3/lib/tdb/tools
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-06 21:47:57 -0800
committerJeremy Allison <jra@samba.org>2007-11-06 21:47:57 -0800
commitd8f3c9d0786ff637241d2a9409e1c7c253715ba5 (patch)
tree7fe843ce0e72d348e6114af9626d41c29419c1c0 /source3/lib/tdb/tools
parent7498e1b8c09abef2db0658c6bfd6d42891c9690d (diff)
downloadsamba-d8f3c9d0786ff637241d2a9409e1c7c253715ba5.tar.gz
samba-d8f3c9d0786ff637241d2a9409e1c7c253715ba5.tar.bz2
samba-d8f3c9d0786ff637241d2a9409e1c7c253715ba5.zip
Fix bug where tdb lock call interrupted with
an alarm sig would not terminate and could lead to runaway smbd processes. Thanks to Dave Daugherty @ Centrify for pointing this out to us. Jeremy. (This used to be commit ef8da1698371c95495add53df81a978df709c88d)
Diffstat (limited to 'source3/lib/tdb/tools')
-rw-r--r--source3/lib/tdb/tools/tdbbackup.c1
-rw-r--r--source3/lib/tdb/tools/tdbdump.c1
-rw-r--r--source3/lib/tdb/tools/tdbtool.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/tdb/tools/tdbbackup.c b/source3/lib/tdb/tools/tdbbackup.c
index dedfb9e665..6f3ca48314 100644
--- a/source3/lib/tdb/tools/tdbbackup.c
+++ b/source3/lib/tdb/tools/tdbbackup.c
@@ -44,6 +44,7 @@
#include "system/locale.h"
#include "system/time.h"
#include "system/filesys.h"
+#include "system/wait.h"
#include "tdb.h"
#ifdef HAVE_GETOPT_H
diff --git a/source3/lib/tdb/tools/tdbdump.c b/source3/lib/tdb/tools/tdbdump.c
index a654c0fb31..8d930383b0 100644
--- a/source3/lib/tdb/tools/tdbdump.c
+++ b/source3/lib/tdb/tools/tdbdump.c
@@ -21,6 +21,7 @@
#include "system/locale.h"
#include "system/time.h"
#include "system/filesys.h"
+#include "system/wait.h"
#include "tdb.h"
static void print_data(TDB_DATA d)
diff --git a/source3/lib/tdb/tools/tdbtool.c b/source3/lib/tdb/tools/tdbtool.c
index da040f95f3..79435a3571 100644
--- a/source3/lib/tdb/tools/tdbtool.c
+++ b/source3/lib/tdb/tools/tdbtool.c
@@ -24,6 +24,7 @@
#include "system/locale.h"
#include "system/time.h"
#include "system/filesys.h"
+#include "system/wait.h"
#include "tdb.h"
static int do_command(void);