From 57e5409fde004b01aea378b8212b52b7255e6760 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sat, 17 Jun 2023 12:34:26 -0400 Subject: [PATCH] Fix UnixIOException usage --- src/Tgstation.Server.Host/System/PosixProcessFeatures.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/System/PosixProcessFeatures.cs b/src/Tgstation.Server.Host/System/PosixProcessFeatures.cs index 184ce2b55e..5f55d3f1e1 100644 --- a/src/Tgstation.Server.Host/System/PosixProcessFeatures.cs +++ b/src/Tgstation.Server.Host/System/PosixProcessFeatures.cs @@ -48,7 +48,7 @@ namespace Tgstation.Server.Host.System { var result = Syscall.kill(process.Id, Signum.SIGCONT); if (result != 0) - throw new UnixIOException(result); + throw new UnixIOException(Stdlib.GetLastError()); } /// @@ -56,7 +56,7 @@ namespace Tgstation.Server.Host.System { var result = Syscall.kill(process.Id, Signum.SIGSTOP); if (result != 0) - throw new UnixIOException(result); + throw new UnixIOException(Stdlib.GetLastError()); } ///