You are on page 1of 1

char buf[BUFSIZ];

ssize_t nr;

start:

nr = read (fd, buf, BUFSIZ);

if (nr == -1) {

if (errno == EINTR)

goto start; /

if (errno == EAGAIN)

/* resubmit l

else

/* error */

You might also like