[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r17679: {tor} Call release_lockfile() before exiting. (tor/trunk/src/or)



Author: nickm
Date: 2008-12-18 10:00:13 -0500 (Thu, 18 Dec 2008)
New Revision: 17679

Modified:
   tor/trunk/src/or/main.c
Log:
Call release_lockfile() before exiting.

Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c	2008-12-18 15:00:09 UTC (rev 17678)
+++ tor/trunk/src/or/main.c	2008-12-18 15:00:13 UTC (rev 17679)
@@ -1963,6 +1963,9 @@
   if (active_linked_connection_lst)
     smartlist_free(active_linked_connection_lst);
   tor_free(timeout_event);
+  if (!postfork) {
+    release_lockfile();
+  }
   /* Stuff in util.c and address.c*/
   if (!postfork) {
     escaped(NULL);