summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-06 11:50:22 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-06 11:50:22 -0400
commit1098893e4f3753bf66248abf81702175dca980ee (patch)
tree65fba3d76ebd6bccb05a4dd5dd2661dfc1034244 /src/common/util.h
parent342712b9ef12c0234def9c2b4eb5c63f54c8bb5b (diff)
downloadtor-1098893e4f3753bf66248abf81702175dca980ee.tar.gz
tor-1098893e4f3753bf66248abf81702175dca980ee.zip
Exit when we can't write to a configured pid file
This is probably what the user wants, according to 20119.
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index f50cf043a4..073fb82aed 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -389,7 +389,7 @@ int path_is_relative(const char *filename);
/* Process helpers */
void start_daemon(void);
void finish_daemon(const char *desired_cwd);
-void write_pidfile(const char *filename);
+int write_pidfile(const char *filename);
/* Port forwarding */
void tor_check_port_forwarding(const char *filename,