diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-01 22:12:44 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-01 22:12:44 +0200 |
commit | c4199f22d0f7793b70db51c01783f0d45afce3d4 (patch) | |
tree | d54b8df23749d5ea06dc5effd5ba111b8e2cf52f /runit | |
parent | 29b33b63d49be88200f794d832450a4c71e85a5e (diff) | |
download | busybox-w32-c4199f22d0f7793b70db51c01783f0d45afce3d4.tar.gz busybox-w32-c4199f22d0f7793b70db51c01783f0d45afce3d4.tar.bz2 busybox-w32-c4199f22d0f7793b70db51c01783f0d45afce3d4.zip |
libbb: two new functions: wait_for_exitstatus(pid), xfchdir(fd)
Bartosz Golaszewski proposed xfchdir()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit')
-rw-r--r-- | runit/chpst.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 301cdd08a..7fe5151db 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -255,8 +255,7 @@ static NOINLINE void edir(const char *directory_name) | |||
255 | xsetenv(d->d_name, buf); | 255 | xsetenv(d->d_name, buf); |
256 | } | 256 | } |
257 | closedir(dir); | 257 | closedir(dir); |
258 | if (fchdir(wdir) == -1) | 258 | xfchdir(wdir); |
259 | bb_perror_msg_and_die("fchdir"); | ||
260 | close(wdir); | 259 | close(wdir); |
261 | } | 260 | } |
262 | 261 | ||