comparison src/lwwire.c @ 3:e94940ca17e7

Write to *stdout* not stdin. Duh!
author William Astle <lost@l-w.ca>
date Sun, 29 May 2016 11:10:25 -0600
parents 2f2cbd2d2561
children 56f53e48ab50
comparison
equal deleted inserted replaced
2:2f2cbd2d2561 3:e94940ca17e7
485 fd_set fdset; 485 fd_set fdset;
486 struct timeval timeout; 486 struct timeval timeout;
487 487
488 while (towrite > 0) 488 while (towrite > 0)
489 { 489 {
490 rv = write(0, buf, towrite); 490 rv = write(1, buf, towrite);
491 if (rv == towrite) 491 if (rv == towrite)
492 break; 492 break;
493 if (rv < 0) 493 if (rv < 0)
494 { 494 {
495 if (errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR) 495 if (errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR)