mirror of https://github.com/2dust/v2rayN
Fixed an issue where root processes could not be exited on macOS
parent
f779e311ed
commit
dad35f57d0
|
@ -110,7 +110,7 @@ public class CoreAdminHandler
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sb.AppendLine($"sudo -S -k -p '' {cmdLine}");
|
sb.AppendLine($"sudo -S {cmdLine}");
|
||||||
}
|
}
|
||||||
|
|
||||||
await File.WriteAllTextAsync(shFilePath, sb.ToString());
|
await File.WriteAllTextAsync(shFilePath, sb.ToString());
|
||||||
|
|
|
@ -65,7 +65,7 @@ public partial class SudoPasswordInputView : UserControl
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Use sudo echo command to verify password
|
// Use sudo echo command to verify password
|
||||||
var arg = new List<string>() { "-c", "sudo -S -k -p '' echo SUDO_CHECK" };
|
var arg = new List<string>() { "-c", "sudo -S echo SUDO_CHECK" };
|
||||||
var result = await CliWrap.Cli
|
var result = await CliWrap.Cli
|
||||||
.Wrap(Global.LinuxBash)
|
.Wrap(Global.LinuxBash)
|
||||||
.WithArguments(arg)
|
.WithArguments(arg)
|
||||||
|
|
Loading…
Reference in New Issue