[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] prevent assert failure on -HUP when options->PidFile==NULL
- To: or-cvs@freehaven.net
- Subject: [or-cvs] prevent assert failure on -HUP when options->PidFile==NULL
- From: arma@seul.org (Roger Dingledine)
- Date: Wed, 3 Dec 2003 17:00:23 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Wed, 03 Dec 2003 17:00:40 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
config.c
Log Message:
prevent assert failure on -HUP when options->PidFile==NULL
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- config.c 20 Nov 2003 17:49:44 -0000 1.72
+++ config.c 3 Dec 2003 22:00:20 -0000 1.73
@@ -292,7 +292,8 @@
argc = backup_argc;
/* record some previous values, so we can fail if they change */
- previous_pidfile = tor_strdup(options->PidFile);
+ if(options->PidFile)
+ previous_pidfile = tor_strdup(options->PidFile);
previous_runasdaemon = options->RunAsDaemon;
free_options(options);
}