[mythtv-commits] mythtv/master commit: 1e76a5973 by Gavin Hurlbut (Beirdo)
MythTV
noreply at mythtv.org
Fri Jul 1 01:15:43 UTC 2011
Author: Gavin Hurlbut <ghurlbut at mythtv.org>
Change Date: 2011-06-30T18:15:31-07:00
Push Date: 2011/06/30 18:15:37 -0700
Repository: mythtv
Branch: master
New Revision: 1e76a59738194fee95fb540d8461739270bd3c9d
Changeset: https://github.com/MythTV/mythtv/commit/1e76a5973
Log:
Fix --daemon mode and logging.
We *must* daemonize before starting the logging thread or the thread disappears
as part of the fork inherent to daemon(). As mythbackend already had that
functionality nicely separated out into a set of functions, I moved those
functions into mythcommandlineparser.cpp, which is now accessible using
cmdline.Daemonize(). Again, this *must* happen before calling
cmdline.ConfigureLogging().
Cleaned up all uses of daemonizing to ensure it is done the same across the
board.
Modified:
mythtv/libs/libmythbase/mythcommandlineparser.cpp
mythtv/libs/libmythbase/mythcommandlineparser.h
mythtv/libs/libmythbase/mythlogging.h
mythtv/programs/mythbackend/main.cpp
mythtv/programs/mythbackend/main_helpers.cpp
mythtv/programs/mythbackend/main_helpers.h
mythtv/programs/mythjobqueue/main.cpp
mythtv/programs/mythlcdserver/main.cpp
mythtv/programs/mythmediaserver/commandlineparser.cpp
mythtv/programs/mythmediaserver/main.cpp
More information about the mythtv-commits
mailing list