[MPlayer-dev-eng] cache2.c bug
Howard Chu
hyc at highlandsun.com
Fri May 28 08:02:15 CEST 2010
The current cache2 code dies almost immediately after fork'ing, because the
SIGUSR1 handler has not been installed yet by the time the parent first calls
cache_wakeup(). This fixes it for me.
Index: stream/cache2.c
===================================================================
--- stream/cache2.c (revision 31247)
+++ stream/cache2.c (working copy)
@@ -454,6 +454,7 @@
#ifdef CONFIG_GUI
use_gui = 0; // mp_msg may not use gui stuff in forked code
#endif
+ signal(SIGUSR1,SIG_IGN);
signal(SIGTERM,exit_sighandler); // kill
cache_mainloop(s);
// make sure forked code never leaves this function
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
More information about the MPlayer-dev-eng
mailing list