While investigating why I often get "ERROR: /dev/dvb/adapter1/dvr0: Device or resource busy" when trying to record I found that the problem was using XBMC through externalplayer.
Digging a bit further I found this:
http://www.freak-search.com/de…tance_of_file_descriptors
and subsequently found that externalplayer uses execle instead of the SystemExec call.
The following rough patch fixes this issue. Posted here due to my account with the bugtracker is still pending admin approval.
Diff
--- /tmp/vdr-plugin-externalplayer-0.1.0/externalplayer-player.c 2010-01-03 10:20:30.000000000 +0100
+++ externalplayer-player.c 2011-06-30 12:25:14.000000000 +0200
@@ -43,7 +43,7 @@
}
isyslog("externalplayer-plugin: executing \"%s\"", config->playerCommand.c_str());
- execle("/bin/sh", "sh", "-c", config->playerCommand.c_str(), NULL, environ);
+ SystemExec(config->playerCommand.c_str());
isyslog("externalplayer-plugin: execution (of /bin/sh) failed");
_exit(0);
}
Alles anzeigen