diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-05 19:28:29 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-05 19:28:29 +0200 |
commit | e09bff33412c150a2c4c80ca7e2d5c6b76f10c9f (patch) | |
tree | 0d9530a372348a58acb2a3ff8b515fa21cb506ca /runit/runsv.c | |
parent | 8d789e419732e860cf89883c0565ff496b3291ee (diff) | |
download | busybox-w32-e09bff33412c150a2c4c80ca7e2d5c6b76f10c9f.tar.gz busybox-w32-e09bff33412c150a2c4c80ca7e2d5c6b76f10c9f.tar.bz2 busybox-w32-e09bff33412c150a2c4c80ca7e2d5c6b76f10c9f.zip |
runit_lib: remove/inline a few more things
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'runit/runsv.c')
-rw-r--r-- | runit/runsv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 5b221e90a..6bb6ec886 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -151,7 +151,8 @@ static char *bb_stpcpy(char *p, const char *to_add) | |||
151 | 151 | ||
152 | static int open_trunc_or_warn(const char *name) | 152 | static int open_trunc_or_warn(const char *name) |
153 | { | 153 | { |
154 | int fd = open_trunc(name); | 154 | /* Why O_NDELAY? */ |
155 | int fd = open(name, O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT, 0644); | ||
155 | if (fd < 0) | 156 | if (fd < 0) |
156 | bb_perror_msg("%s: warning: cannot open %s", | 157 | bb_perror_msg("%s: warning: cannot open %s", |
157 | dir, name); | 158 | dir, name); |