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());
}
///