Throughout, remove extra space after function name from debugging output.
Throughout, change syscalls to report on return values using new %R format option. * smallprint.cc (__small_vsprintf): Add parsing for %R to report on return values and possible errno from syscalls. * errno.cc (errmap): Add PRIVILEGE_NOT_HELD. * fhandler_tty.cc (fhandler_pty_master::setup): When creating a thread use shorter name to reduce debuggging output. * select.cc (start_thread_pipe): Ditto. (start_thread_serial): Ditto. (start_thread_socket): Ditto. (start_thread_mailslot): Ditto. * sigproc.cc (talktome): Ditto.
This commit is contained in:
@@ -654,7 +654,7 @@ start_thread_pipe (select_record *me, select_stuff *stuff)
|
||||
{
|
||||
pi->start = &stuff->start;
|
||||
pi->stop_thread = false;
|
||||
pi->thread = new cygthread (thread_pipe, pi, "select_pipe");
|
||||
pi->thread = new cygthread (thread_pipe, pi, "pipesel");
|
||||
me->h = *pi->thread;
|
||||
if (!me->h)
|
||||
return 0;
|
||||
@@ -1138,7 +1138,7 @@ start_thread_serial (select_record *me, select_stuff *stuff)
|
||||
select_serial_info *si = new select_serial_info;
|
||||
si->start = &stuff->start;
|
||||
si->stop_thread = false;
|
||||
si->thread = new cygthread (thread_serial, si, "select_serial");
|
||||
si->thread = new cygthread (thread_serial, si, "sersel");
|
||||
me->h = *si->thread;
|
||||
stuff->device_specific_serial = si;
|
||||
}
|
||||
@@ -1407,7 +1407,7 @@ start_thread_socket (select_record *me, select_stuff *stuff)
|
||||
stuff->device_specific_socket = si;
|
||||
si->start = &stuff->start;
|
||||
select_printf ("stuff_start %p", &stuff->start);
|
||||
si->thread = new cygthread (thread_socket, si, "select_socket");
|
||||
si->thread = new cygthread (thread_socket, si, "socksel");
|
||||
me->h = *si->thread;
|
||||
return 1;
|
||||
}
|
||||
@@ -1645,7 +1645,7 @@ start_thread_mailslot (select_record *me, select_stuff *stuff)
|
||||
select_mailslot_info *mi = new select_mailslot_info;
|
||||
mi->start = &stuff->start;
|
||||
mi->stop_thread = false;
|
||||
mi->thread = new cygthread (thread_mailslot, mi, "select_mailslot");
|
||||
mi->thread = new cygthread (thread_mailslot, mi, "mailsel");
|
||||
me->h = *mi->thread;
|
||||
if (!me->h)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user