commit | c4199f22d0f7793b70db51c01783f0d45afce3d4 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Fri Apr 01 22:12:44 2016 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Fri Apr 01 22:12:44 2016 +0200 |
tree | d54b8df23749d5ea06dc5effd5ba111b8e2cf52f | |
parent | 29b33b63d49be88200f794d832450a4c71e85a5e [diff] |
libbb: two new functions: wait_for_exitstatus(pid), xfchdir(fd) Bartosz Golaszewski proposed xfchdir() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/runit/chpst.c b/runit/chpst.c index 301cdd0..7fe5151 100644 --- a/runit/chpst.c +++ b/runit/chpst.c
@@ -255,8 +255,7 @@ xsetenv(d->d_name, buf); } closedir(dir); - if (fchdir(wdir) == -1) - bb_perror_msg_and_die("fchdir"); + xfchdir(wdir); close(wdir); }