From a70b36f98f42924c36d6b14cd10fb874d6a8c779 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 7 Dec 2010 17:41:39 -0500 Subject: Added missing mutex init/destroy (should have crashed, but never did...) --- src/netnuke.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/netnuke.c') diff --git a/src/netnuke.c b/src/netnuke.c index 7ff94bc..4527276 100644 --- a/src/netnuke.c +++ b/src/netnuke.c @@ -269,6 +269,7 @@ int main(int argc, char* argv[]) COM(self, "Initializing mutex\n"); pthread_mutex_init(&lock_global, NULL); + pthread_mutex_init(&lock_write, NULL); COM(self, "Generating threads\n"); /* If the operator wants to preserve the first device */ @@ -316,6 +317,7 @@ int main(int argc, char* argv[]) COM(self, "Destroying mutex\n"); pthread_mutex_destroy(&lock_global); + pthread_mutex_destroy(&lock_write); COM(self, "Total bytes written: %lu\n", total_written_bytes); /* Close urandom */ -- cgit