aboutsummaryrefslogtreecommitdiff
path: root/runit/runsv.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-09-05 19:28:29 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-05 19:28:29 +0200
commite09bff33412c150a2c4c80ca7e2d5c6b76f10c9f (patch)
tree0d9530a372348a58acb2a3ff8b515fa21cb506ca /runit/runsv.c
parent8d789e419732e860cf89883c0565ff496b3291ee (diff)
downloadbusybox-e09bff33412c150a2c4c80ca7e2d5c6b76f10c9f.tar.gz
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.c3
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)
static int open_trunc_or_warn(const char *name)
{
- int fd = open_trunc(name);
+ /* Why O_NDELAY? */
+ int fd = open(name, O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT, 0644);
if (fd < 0)
bb_perror_msg("%s: warning: cannot open %s",
dir, name);