Skip to content

Commit c84137d

Browse files
Add annotations to three flags to eliminate if possible.
1 parent 0585a99 commit c84137d

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

mythtv/libs/libmythbase/mythsystem.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,19 @@ typedef enum MythSystemMask {
3939
kMSRunBackground = 0x00000004, ///< run child in the background
4040
kMSProcessEvents = 0x00000008, ///< process events while waiting
4141
kMSInUi = 0x00000010, ///< the parent is in the UI
42+
// ^ FIXME Eliminate? appears entirely unused.
4243
kMSStdIn = 0x00000020, ///< allow access to stdin
4344
kMSStdOut = 0x00000040, ///< allow access to stdout
4445
kMSStdErr = 0x00000080, ///< allow access to stderr
4546
kMSRunShell = 0x00000200, ///< run process through shell
4647
kMSAnonLog = 0x00000800, ///< anonymize the logs
4748
kMSSetPGID = 0x00002000, ///< set the process group id
49+
// ^ FIXME Eliminate? appears to not be used + not available on windows
4850
kMSAutoCleanup = 0x00004000, ///< automatically delete if
4951
/// backgrounded
5052
kMSLowExitVal = 0x00008000, ///< allow exit values 0-127 only
53+
// ^ FIXME Eliminate? appears to be a hack for some "ubuntu", but
54+
// doesn't appear to be needed with ubuntu 12.04
5155
kMSDisableUDPListener = 0x00010000, ///< disable MythMessage UDP listener
5256
/// for the duration of application.
5357
kMSPropagateLogs = 0x00020000, ///< add arguments for MythTV log

mythtv/libs/libmythbase/test/test_mythsystem/test_mythsystem.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ class TestMythSystem: public QObject
108108
}
109109

110110
// TODO kMSProcessEvents -- process events while waiting
111-
// TODO kMSInUi -- the parent is in the UI
112111

113112
// kMSStdIn -- allow access to stdin
114113
void stdin_works(void)
@@ -194,9 +193,6 @@ class TestMythSystem: public QObject
194193
#endif
195194
}
196195

197-
// TODO flags to test
198-
// TODO kMSSetPGID -- set the process group id
199-
200196
// kMSAutoCleanup -- automatically delete if backgrounded
201197
void auto_cleanup_return_null(void)
202198
{
@@ -205,7 +201,6 @@ class TestMythSystem: public QObject
205201
QVERIFY(!ptr);
206202
}
207203

208-
// TODO kMSLowExitVal -- allow exit values 0-127 only
209204
// TODO kMSDisableUDPListener -- disable MythMessage UDP listener
210205
// for the duration of application.
211206
// TODO kMSPropagateLogs -- add arguments for MythTV log propagation

mythtv/libs/libmythbase/test/test_mythsystemlegacy/test_mythsystemlegacy.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ class TestMythSystemLegacy: public QObject
125125
}
126126

127127
// TODO kMSProcessEvents -- process events while waiting
128-
// TODO kMSInUi -- the parent is in the UI
129128

130129
// kMSStdIn -- allow access to stdin
131130
void stdin_works(void)
@@ -195,9 +194,7 @@ class TestMythSystemLegacy: public QObject
195194
}
196195

197196
// TODO flags to test
198-
// TODO kMSSetPGID -- set the process group id
199197
// TODO kMSAutoCleanup -- automatically delete if backgrounded
200-
// TODO kMSLowExitVal -- allow exit values 0-127 only
201198
// TODO kMSDisableUDPListener -- disable MythMessage UDP listener
202199
// for the duration of application.
203200
// TODO kMSPropagateLogs -- add arguments for MythTV log propagation

0 commit comments

Comments
 (0)