mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fix for better logging
This commit is contained in:
@@ -65,13 +65,15 @@ if ($config{'rcfile'}) {
|
||||
}
|
||||
}
|
||||
my ($shellfh, $pid) = &proc::pty_process_exec($shellexec, $uid, $gid, $shelllogin);
|
||||
print STDERR "using shell command '$shellexec".($shelllogin ? " $shelllogin" : undef)."'\n";
|
||||
&reset_environment();
|
||||
my $shcmd = "'$shellexec".($shelllogin ? " $shelllogin" : undef)."'";
|
||||
if (!$pid) {
|
||||
&cleanup_miniserv();
|
||||
die "Failed to run shell $uinfo[8]";
|
||||
die "Failed to run shell with $shcmd\n";
|
||||
}
|
||||
else {
|
||||
print STDERR "Running shell $shcmd with pid $pid\n";
|
||||
}
|
||||
print STDERR "shell process is $pid\n";
|
||||
|
||||
# Detach from controlling terminal
|
||||
if (fork()) {
|
||||
|
||||
Reference in New Issue
Block a user