diff options
author | Denys Vlasenko | 2010-09-05 19:28:29 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-09-05 19:28:29 +0200 |
commit | e09bff33412c150a2c4c80ca7e2d5c6b76f10c9f (patch) | |
tree | 0d9530a372348a58acb2a3ff8b515fa21cb506ca /runit/runsv.c | |
parent | 8d789e419732e860cf89883c0565ff496b3291ee (diff) | |
download | busybox-e09bff33412c150a2c4c80ca7e2d5c6b76f10c9f.zip busybox-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 5b221e9..6bb6ec8 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); |