diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:48:17 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:48:17 +0000 |
commit | 5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d (patch) | |
tree | 44b7cf5fb706b0816dd4525782ca8c37d07c2f43 /runit | |
parent | 636a1f85e89432601c59cdc3239fc867b4adf051 (diff) | |
download | busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.tar.gz busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.tar.bz2 busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.zip |
- use STD*_FILENO some more. No object-code changes
Diffstat (limited to 'runit')
-rw-r--r-- | runit/svlogd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runit/svlogd.c b/runit/svlogd.c index db3d4c540..bfb97166f 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c | |||
@@ -748,7 +748,7 @@ static int buffer_pread(/*int fd, */char *s, unsigned len) | |||
748 | poll(&input, 1, i * 1000); | 748 | poll(&input, 1, i * 1000); |
749 | sigprocmask(SIG_BLOCK, &blocked_sigset, NULL); | 749 | sigprocmask(SIG_BLOCK, &blocked_sigset, NULL); |
750 | 750 | ||
751 | i = ndelay_read(0, s, len); | 751 | i = ndelay_read(STDIN_FILENO, s, len); |
752 | if (i >= 0) | 752 | if (i >= 0) |
753 | break; | 753 | break; |
754 | if (errno == EINTR) | 754 | if (errno == EINTR) |
@@ -994,7 +994,7 @@ int svlogd_main(int argc, char **argv) | |||
994 | logmatch(ld); | 994 | logmatch(ld); |
995 | if (ld->matcherr == 'e') { | 995 | if (ld->matcherr == 'e') { |
996 | /* runit-1.8.0 compat: if timestamping, do it on stderr too */ | 996 | /* runit-1.8.0 compat: if timestamping, do it on stderr too */ |
997 | ////full_write(2, printptr, printlen); | 997 | ////full_write(STDERR_FILENO, printptr, printlen); |
998 | fwrite(printptr, 1, printlen, stderr); | 998 | fwrite(printptr, 1, printlen, stderr); |
999 | } | 999 | } |
1000 | if (ld->match != '+') continue; | 1000 | if (ld->match != '+') continue; |
@@ -1022,7 +1022,7 @@ int svlogd_main(int argc, char **argv) | |||
1022 | for (i = 0; i < dirn; ++i) { | 1022 | for (i = 0; i < dirn; ++i) { |
1023 | if (dir[i].fddir == -1) continue; | 1023 | if (dir[i].fddir == -1) continue; |
1024 | if (dir[i].matcherr == 'e') { | 1024 | if (dir[i].matcherr == 'e') { |
1025 | ////full_write(2, lineptr, linelen); | 1025 | ////full_write(STDERR_FILENO, lineptr, linelen); |
1026 | fwrite(lineptr, 1, linelen, stderr); | 1026 | fwrite(lineptr, 1, linelen, stderr); |
1027 | } | 1027 | } |
1028 | if (dir[i].match != '+') continue; | 1028 | if (dir[i].match != '+') continue; |