aboutsummaryrefslogtreecommitdiff
path: root/src/netnuke.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netnuke.c')
-rw-r--r--src/netnuke.c2
1 files changed, 2 insertions, 0 deletions
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 */