[mythtv] [PATCH] MythGame: get rid of zombie process after playing
a game
Eloy A. Paris
peloy at chapus.net
Sat Dec 27 02:24:26 EST 2003
MythGame leaves a zombie process around after a game is played (with
xmame), which becomes pretty annoying after playing a long round of
games ;-)
The attached one-liner fixes this problem. I quickly checked the other
handlers and didn't find any missing pclose() calls.
Cheers,
Eloy.-
--- mythgame/mamehandler.cpp.orig 2003-12-27 01:54:34.000000000 -0500
+++ mythgame/mamehandler.cpp 2003-12-27 01:55:46.000000000 -0500
@@ -432,6 +432,8 @@
// Adjust for non rom lines. I think it's always the same.
romcount -= 6;
+ pclose(romlist_info);
+
FILE *command;
command = popen(exec + " 2>&1", "r");
More information about the mythtv-dev
mailing list