]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix an evil bug: when we failed to write to our log, fputs()
authorRoger Dingledine <arma@torproject.org>
Tue, 28 Sep 2004 21:14:40 +0000 (21:14 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 28 Sep 2004 21:14:40 +0000 (21:14 +0000)
commitd381aa46960f6ea5db2a29d6abd0d30d34c23b46
treea2b75d9e0307312e84a52449dc317b35d6f13285
parent25beea22bf6dfb2e5fa2c9688144935543dff172
Fix an evil bug: when we failed to write to our log, fputs()
gave us a sigpipe, and we logged that we were ignoring it,
causing us to fail to log that, and delete the log entry. Then
when the signal handler exited, we proceeded to delete the log
entry that had already been deleted.

Now we make sure to only log inside our signal handler if we'll
be exit()ing right after.

svn:r2388
src/or/main.c
src/or/test.c