[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-grub] Re: address@hidden: Bug#122905: grub exits when receiving
From: |
Yoshinori K. Okuji |
Subject: |
Re: [Bug-grub] Re: address@hidden: Bug#122905: grub exits when receiving SIGWINCH] |
Date: |
Mon, 10 Dec 2001 05:51:30 +0900 |
User-agent: |
Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryoae) APEL/10.3 Emacs/20.7 (i686-pc-linux-gnu) MULE/4.0 (HANANOEN) |
At Sun, 9 Dec 2001 10:53:26 +1100,
Jason Thomas wrote:
> I tried running it from within gdb but it says that grub exited
> normally. attached is a strace.
I'm not sure why, but my xterm seems not to raise SIGWINCH
automatically (because it is derived from XFree86 4.1.0 instead of
3.3.6?), so I didn't notice it.
I think this patch is enough for us:
Index: grub/asmstub.c
===================================================================
RCS file: /cvsroot/grub/grub/grub/asmstub.c,v
retrieving revision 1.71
diff -u -p -r1.71 asmstub.c
--- grub/asmstub.c 2001/10/13 12:02:30 1.71
+++ grub/asmstub.c 2001/12/09 20:51:10
@@ -41,6 +41,7 @@ int grub_stage2 (void);
#include <setjmp.h>
#include <sys/time.h>
#include <termios.h>
+#include <signal.h>
#ifdef __linux__
# include <sys/ioctl.h> /* ioctl */
@@ -168,6 +169,7 @@ grub_stage2 (void)
scrollok (stdscr, TRUE);
keypad (stdscr, TRUE);
wtimeout (stdscr, 100);
+ signal (SIGWINCH, SIG_IGN);
}
#endif
Okuji