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

D Richard Felker III dalias at aerifal.cx
Tue May 20 16:01:35 CEST 2003


On Tue, May 20, 2003 at 12:26:46PM +0200, Dan Christiansen wrote:
> 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()...
> 
> How about simply using fwrite() and write to standard error? If 
> fprintf() isn't suitable for a sighandler, surely fwrite() must be.

No, the whole idea is that you're modifying a global variable, the
struct pointed to by "stderr". So f* is forbidden. Try write() next
time.

Rich



More information about the MPlayer-dev-eng mailing list