vlog: Make vlog_reopen_log_file() a no-op if no log file is open.
authorBen Pfaff <blp@nicira.com>
Wed, 8 Apr 2009 20:46:20 +0000 (13:46 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 8 Apr 2009 20:46:20 +0000 (13:46 -0700)
commitddba16a7f4ce63117f10feb256f907bae29c1cad
tree9e4e247ee7a3a4475a037df091c88d8cb3ec992f
parentad51aaf63d5dc7beaf946e2818425265e5ca5825
vlog: Make vlog_reopen_log_file() a no-op if no log file is open.

The --log-file option is supposed to be used to create a log file, but
until now, even if this isn't done, --reopen to the vlogconf program will
make it open one.  This behavior was unexpected, hence this commit that
prevents it from happening.

Fixes bug #905.
lib/vlog.c