version 1.122, 2019/05/12 20:58:19 |
version 1.123, 2019/05/12 21:30:48 |
|
|
|
|
imsg_init(&child_ibuf, sock); |
imsg_init(&child_ibuf, sock); |
tostdout = oarg && (strcmp(oarg, "-") == 0); |
tostdout = oarg && (strcmp(oarg, "-") == 0); |
|
if (tostdout) |
|
msgout = stderr; |
if (resume && tostdout) |
if (resume && tostdout) |
errx(1, "can't append to stdout"); |
errx(1, "can't append to stdout"); |
|
|
|
|
|
|
if (tostdout) { |
if (tostdout) { |
dst_fp = stdout; |
dst_fp = stdout; |
msgout = stderr; |
|
} else if ((dst_fp = fdopen(fd, "w")) == NULL) |
} else if ((dst_fp = fdopen(fd, "w")) == NULL) |
err(1, "%s: fdopen", __func__); |
err(1, "%s: fdopen", __func__); |
|
|