[MPlayer-dev-eng] [patch] cache2.c: when fork() fails, mplayer can kill every user process
Yuriy Kaminskiy
yumkam at mail.ru
Tue Jan 19 16:26:19 CET 2010
Hello!
When fork() fails (due to ulimits or OOM), stream->cache_pid == -1, and later
mplayer hard-kill every user process:
=== cut ===
void cache_uninit(stream_t *s) {
cache_vars_t* c = s->cache_data;
if(!s->cache_pid) return;
#if defined(__MINGW32__) || defined(PTHREAD_CACHE) || defined(__OS2__)
cache_do_control(s, -2, NULL);
#else
kill(s->cache_pid,SIGKILL);
=== cut ===
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream-cache-killall-2.patch
Type: text/x-diff
Size: 745 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100119/15d5871d/attachment.patch>
More information about the MPlayer-dev-eng
mailing list