瀏覽代碼

Call release_lockfile() before exiting.

svn:r17679
Nick Mathewson 17 年之前
父節點
當前提交
4911ec627b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/or/main.c

+ 3 - 0
src/or/main.c

@@ -1963,6 +1963,9 @@ tor_free_all(int postfork)
   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);