cache: Use sigaction() instead of signal()
commit5544c07aabea054590f70ece9af83636c698291c
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 15 Jul 2010 18:09:14 +0000 (15 18:09 +0000)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 2 Nov 2010 02:14:44 +0000 (2 04:14 +0200)
treedbfef1a95dea822d95a38c8b601c23bec436a430
parent5ed772b9cddc4c0de6762e223428b3e36eceefff
cache: Use sigaction() instead of signal()

Signal() has an unavoidable race-condition on "broken by
backwards-compatibility" systems like Solaris. (Upon receiving a
signal, the handler is reset to SIG_DFL, thus a second signal will
kill the process. The problem could also be reduced by re-installing
the handler inside the handler, but there's still a race-condition and
the risk of the handler being called inside the handler).

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31738 b3059339-0415-0410-9bf9-f77b7e298cf2
stream/cache2.c