Revert "esxi: improve error handling for fuse mount tool"
This reverts commit d80420bca8.
This diverts stderr of the fuse process to a pipe, which makes no
sense as it runs daemonized in a scope, also, the pipe fd was used as
a ready-signal, which now does not trigger anymore.
This commit is contained in:
@ -222,9 +222,6 @@ sub esxi_mount : prototype($$$;$) {
|
||||
// die "failed to get file descriptor flags: $!\n";
|
||||
fcntl($wr, F_SETFD, $flags & ~FD_CLOEXEC)
|
||||
// die "failed to remove CLOEXEC flag from fd: $!\n";
|
||||
|
||||
open(STDERR, ">&", $wr) or die "unable to redirect STDERR: $!\n";
|
||||
|
||||
# FIXME: use the user/group options!
|
||||
exec {$ESXI_FUSE_TOOL}
|
||||
$ESXI_FUSE_TOOL,
|
||||
@ -248,7 +245,7 @@ sub esxi_mount : prototype($$$;$) {
|
||||
undef $wr;
|
||||
|
||||
my $result = do { local $/ = undef; <$rd> };
|
||||
if ($result =~ /^ERROR: (.*)$/i) {
|
||||
if ($result =~ /^ERROR: (.*)$/) {
|
||||
die "$1\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user