Opened 12 years ago
Last modified 12 years ago
#2044 new defect
using strace -p on running mplayer (dumpstream) lets mplayer die
Reported by: | Owned by: | reimar | |
---|---|---|---|
Priority: | normal | Component: | streaming |
Version: | unspecified | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
Using strace -p on running mplayer (dumpstream) lets mplayer die.
So strace can't be used on an already running streamdumping mplayer.
Looked at the problem in detail I found out, that
there was an interrupted systemcall.
mplayer was so nice to mention this, printing the
error message for that case.
I located the problem in stream/networking.c
in function nop_streaming_read()
which is calling recv().
I also have added some lines of code and could fix the problem.
See the attached patch.
General Remark:
I also looked into the code of mplayer; it is using signal().
This is the unreliable signalling system.
In general it would be better to use sigaction()-semantics instead of
signal, because that is the reliable signalling stuff.
Added a Label and a goto (sic!) to allow restarting the recv() call