[MPlayer-dev-eng] PATCH: signal handling in gmplayer, immediate mode in tvi_v4l, wrong warning for tv:// MRLs

Sergey Pinaev dfo at antex.ru
Tue May 20 12:28:57 CEST 2003


hi.
On Tue, 20 May 2003 12:26:46 +0200
Dan Christiansen <danchr at daimi.au.dk> wrote:

DC> On Tuesday, May 20, 2003, at 12:17 PM, Sergey Pinaev wrote:

>> "good" way should be to set signal handler with sigaction() and
>> set sa_mask to block all signals during handler excution and
>> replace mp_msg's in exit_sighandler with printf("we are dead\n").
>> exit_player() should also be replaced with exit()...

DC> How about simply using fwrite() and write to standard error? If 
DC> fprintf() isn't suitable for a sighandler, surely fwrite() must be.

if sighandler does exit() after f* it doesnt matter.
btw, afaiu all stdio functions are nonreentrant.

-- 
mail="Sergey Pinaev <dfo at antex.ru>"
url="http://`echo $mail | sed 's/.* <\(.*\)>/\1/' | sed 's/@/./'`"



More information about the MPlayer-dev-eng mailing list