From d381aa46960f6ea5db2a29d6abd0d30d34c23b46 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 28 Sep 2004 21:14:40 +0000 Subject: 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/test.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/or/test.c') diff --git a/src/or/test.c b/src/or/test.c index 0ee815227..f09399144 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1023,7 +1023,6 @@ test_dir_format() test_eq(0, is_obsolete_version("0.0.5", "0.0.5-cvs")); test_eq(0, is_obsolete_version("0.0.5.1-cvs", "0.0.5")); - test_eq(0, tor_version_as_new_as("Tor 0.0.5", "0.0.9pre1-cvs")); test_eq(0, tor_version_as_new_as("Tor 0.0.5", "0.0.9pre1-cvs")); test_eq(1, tor_version_as_new_as( "Tor 0.0.8 on Darwin 64-121-192-100.c3-0.sfpo-ubr1.sfrn-sfpo.ca.cable.rcn.com Power Macintosh", "0.0.8rc2")); -- cgit v1.2.3