gpm related crash fix
Dmitry Alexeyev
dmi_a at qnx.org.ru
Tue Dec 23 16:50:54 UTC 2003
Hello!
Some days ago I put my linux in pretty weird state, similar to single
user mode. In this mode gpmd dies..
The error was in some rc.d level 6 script, which didn't handle `reboot'
properly, so returned to login prompt (single user).
When I tried to run mc, it crashed. gdb said gpm_fd was -2, and mc only
checks for -1.
Attached key.c.diff changes checking for == -1 to < 0, which is more
general case.
view.c.diff fixes warning.
WBR,
Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: key.c.diff
Type: text/x-diff
Size: 1131 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20031223/50b09bd3/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: view.c.diff
Type: text/x-diff
Size: 369 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20031223/50b09bd3/attachment-0001.diff>
More information about the mc-devel
mailing list