/[baselayout]/trunk/src/runscript.c
Gentoo

Diff of /trunk/src/runscript.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2652 Revision 2657
372 FD_SET (stdout_pipes[0], &fds); 372 FD_SET (stdout_pipes[0], &fds);
373 FD_SET (stderr_pipes[0], &fds); 373 FD_SET (stderr_pipes[0], &fds);
374 retval = select (MAX (stdout_pipes[0], stderr_pipes[0]) + 1, 374 retval = select (MAX (stdout_pipes[0], stderr_pipes[0]) + 1,
375 &fds, 0, 0, 0); 375 &fds, 0, 0, 0);
376 if (retval < 0) { 376 if (retval < 0) {
377 if (errno != EINTR) 377 if (errno != EINTR) {
378 eerror ("select: %s", strerror (errno)); 378 eerror ("select: %s", strerror (errno));
379 break; 379 break;
380 }
380 } else if (retval) { 381 } else if (retval) {
381 ssize_t nr; 382 ssize_t nr;
382 383
383 if (FD_ISSET (stdout_pipes[0], &fds)) { 384 if (FD_ISSET (stdout_pipes[0], &fds)) {
384 if ((nr = read (stdout_pipes[0], buffer, 385 if ((nr = read (stdout_pipes[0], buffer,

Legend:
Removed from v.2652  
changed lines
  Added in v.2657

  ViewVC Help
Powered by ViewVC 1.1.20