version 1.15, 2011/04/10 15:47:28 |
version 1.16, 2011/04/18 12:29:59 |
|
|
*/ |
*/ |
while ((amt = read(child->c_readfd, rbuf, sizeof(rbuf))) > 0) { |
while ((amt = read(child->c_readfd, rbuf, sizeof(rbuf))) > 0) { |
/* XXX remove these debug calls */ |
/* XXX remove these debug calls */ |
debugmsg(DM_MISC, "[readchild(%s, %d, %d) got %lld bytes]", |
debugmsg(DM_MISC, "[readchild(%s, %d, %d) got %zd bytes]", |
child->c_name, child->c_pid, child->c_readfd, amt); |
child->c_name, child->c_pid, child->c_readfd, amt); |
|
|
(void) xwrite(fileno(stdout), rbuf, amt); |
(void) xwrite(fileno(stdout), rbuf, amt); |
|
|
child->c_name, child->c_pid, child->c_readfd); |
child->c_name, child->c_pid, child->c_readfd); |
} |
} |
|
|
debugmsg(DM_MISC, "readchild(%s, %d, %d) done: amt = %lld errno = %d\n", |
debugmsg(DM_MISC, "readchild(%s, %d, %d) done: amt = %zd errno = %d\n", |
child->c_name, child->c_pid, child->c_readfd, amt, errno); |
child->c_name, child->c_pid, child->c_readfd, amt, errno); |
|
|
/* |
/* |