* signal.cc (sigprocmask): Fix strace output to include "how".
* fhandler_console.cc (dev_console::save_restore): Only current dwEnd line rather than the one after that.
This commit is contained in:
parent
7bc7b551f5
commit
fb1565af68
|
@ -1,3 +1,10 @@
|
|||
2014-05-09 Christopher Faylor <me.cygwin2014@cgf.cx>
|
||||
|
||||
* signal.cc (sigprocmask): Fix strace output to include "how".
|
||||
|
||||
* fhandler_console.cc (dev_console::save_restore): Only current dwEnd
|
||||
line rather than the one after that.
|
||||
|
||||
2014-05-08 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* uinfo.cc (cygheap_user::init): Fix formatting in debug output.
|
||||
|
|
|
@ -84,6 +84,7 @@ fhandler_console::open_shared_console (HWND hw, HANDLE& h, bool& create)
|
|||
create = m != SH_JUSTOPEN;
|
||||
return res;
|
||||
}
|
||||
|
||||
class console_unit
|
||||
{
|
||||
int n;
|
||||
|
@ -1457,7 +1458,7 @@ dev_console::save_restore (HANDLE h, char c)
|
|||
{
|
||||
fillin (h);
|
||||
save_bufsize.X = b.dwSize.X;
|
||||
if ((save_bufsize.Y = dwEnd.Y + 2) > b.dwSize.Y)
|
||||
if ((save_bufsize.Y = dwEnd.Y + 1) > b.dwSize.Y)
|
||||
save_bufsize.X = b.dwSize.Y;
|
||||
|
||||
if (save_buf)
|
||||
|
@ -1500,6 +1501,7 @@ dev_console::save_restore (HANDLE h, char c)
|
|||
|
||||
cob.X = 0;
|
||||
cob.Y = save_top;
|
||||
/* CGF: NOOP? Doesn't seem to position screen as expected */
|
||||
/* Temporarily position at top of screen */
|
||||
if (!SetConsoleCursorPosition (h, cob))
|
||||
debug_printf ("SetConsoleCursorInfo(%p, cob) failed during restore, %E", h);
|
||||
|
@ -1677,23 +1679,23 @@ fhandler_console::char_command (char c)
|
|||
if (con.saw_space)
|
||||
{
|
||||
CONSOLE_CURSOR_INFO console_cursor_info;
|
||||
GetConsoleCursorInfo (get_output_handle (), & console_cursor_info);
|
||||
GetConsoleCursorInfo (get_output_handle (), &console_cursor_info);
|
||||
switch (con.args[0])
|
||||
{
|
||||
case 0: /* blinking block */
|
||||
case 1: /* blinking block (default) */
|
||||
case 2: /* steady block */
|
||||
console_cursor_info.dwSize = 100;
|
||||
SetConsoleCursorInfo (get_output_handle (), & console_cursor_info);
|
||||
SetConsoleCursorInfo (get_output_handle (), &console_cursor_info);
|
||||
break;
|
||||
case 3: /* blinking underline */
|
||||
case 4: /* steady underline */
|
||||
console_cursor_info.dwSize = 10; /* or Windows default 25? */
|
||||
SetConsoleCursorInfo (get_output_handle (), & console_cursor_info);
|
||||
SetConsoleCursorInfo (get_output_handle (), &console_cursor_info);
|
||||
break;
|
||||
default: /* use value as percentage */
|
||||
console_cursor_info.dwSize = con.args[0];
|
||||
SetConsoleCursorInfo (get_output_handle (), & console_cursor_info);
|
||||
SetConsoleCursorInfo (get_output_handle (), &console_cursor_info);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -183,7 +183,7 @@ sigprocmask (int how, const sigset_t *set, sigset_t *oldset)
|
|||
set_errno (res);
|
||||
res = -1;
|
||||
}
|
||||
syscall_printf ("%R = sigprocmask (%d, %p, %p)", res, set, oldset);
|
||||
syscall_printf ("%R = sigprocmask (%d, %p, %p)", res, how, set, oldset);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue