[terminal] Add some debug spew if terminal couldn't be opened

This commit is contained in:
Ray Strode 2010-06-02 18:30:12 -04:00
parent 648745cddb
commit 74ed81c79c

View file

@ -462,7 +462,10 @@ ply_terminal_open_device (ply_terminal_t *terminal)
terminal->fd = open (terminal->name, O_RDWR | O_NOCTTY);
if (terminal->fd < 0)
return false;
{
ply_trace ("Unable to open terminal device '%s': %m");
return false;
}
terminal->fd_watch = ply_event_loop_watch_fd (terminal->loop, terminal->fd,
PLY_EVENT_LOOP_FD_STATUS_NONE,