[mythtv-commits] mythtv commit: r22461 by mdean

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Wed Oct 14 22:43:03 UTC 2009


      Author: mdean
        Date: 2009-10-14 22:43:02 +0000 (Wed, 14 Oct 2009)
New Revision: 22461
   Changeset: http://cvs.mythtv.org/trac/changeset/22461

Modified:

   trunk/mythtv/libs/libmyth/dbutil.cpp

Log:

Use myth_system(), rather than system(), to run the database backup programs to simplify calling the commands and to take advantage of the myth_system() code.  This also provides the advantage of giving an already-shifted value for the exit status, which goes in log output for errors, so users can actually search the Internet for the given mysqldump exit codes.

This basically reverts part of the changes in [15932], but I can't find any situation where myth_system() fails to properly return the exit status of the command (whether the command specifies the backup script or mysqldump).






More information about the mythtv-commits mailing list