[MPlayer-dev-eng] [PATCH] Try restore terminal on crash, harder.

Jan Knutar jknutar at nic.fi
Mon Aug 16 22:26:20 CEST 2004


Now and then, people bring up how mplayer leaves their terminal
unusable after crash. RTFS reveals that mplayer tries pretty damn
hard to abort cleanly, however, since people are still experiencing
their terminal going fubar, I had following idea. Due to the nature of
this, I haven't been able to test it more than as far as that it compiles ;-)



_Roughly_ speaking:

OLD:
crash: try uninit + exit
crash: try uninit + exit
crash: try uninit + exit
crash: try uninit + exit
crash: try exit(1)
crash: send self kill -9

PATCH:
crash: try uninit + exit
crash: try uninit + exit
crash: try uninit + exit
crash: try uninit + exit
crash: forget about the normal mplayer uninit codepaths and try
restore terminal by force + exit
crash: try exit
crash: send self kill -9

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-forcibleterminalrestore.patch
Type: text/x-diff
Size: 891 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040816/ea4fa10b/attachment.patch>


More information about the MPlayer-dev-eng mailing list