[Mplayerplug-in-cvs] mplayerplug-in/Source plugin-support.cpp, 1.109, 1.110 plugin-threads.cpp, 1.2
Brought to you by:
kdekorte
From: Kevin D. <kde...@us...> - 2010-01-14 15:21:06
|
Update of /cvsroot/mplayerplug-in/mplayerplug-in/Source In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv32580/Source Modified Files: plugin-support.cpp plugin-threads.cpp Log Message: Patch from James Pearson to prevent mplayerplugin from killing tasks with id -1 Index: plugin-threads.cpp =================================================================== RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/Source/plugin-threads.cpp,v retrieving revision 1.282 retrieving revision 1.283 diff -C2 -d -r1.282 -r1.283 *** plugin-threads.cpp 23 Sep 2009 16:37:52 -0000 1.282 --- plugin-threads.cpp 14 Jan 2010 15:20:57 -0000 1.283 *************** *** 203,206 **** --- 203,213 ---- child = fork(); + if (child < 0) { + if (DEBUG) { + printf("Unable to fork\n"); + } + return NULL; + } + if (!child) { if (DEBUG) { Index: plugin-support.cpp =================================================================== RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/Source/plugin-support.cpp,v retrieving revision 1.109 retrieving revision 1.110 diff -C2 -d -r1.109 -r1.110 *** plugin-support.cpp 3 Apr 2009 15:39:48 -0000 1.109 --- plugin-support.cpp 14 Jan 2010 15:20:57 -0000 1.110 *************** *** 566,570 **** instance->threadlaunched = 0; ! if (instance->pid != 0) { count = 0; status = 1; --- 566,570 ---- instance->threadlaunched = 0; ! if (instance->pid > 0) { count = 0; status = 1; |