aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/global.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/global.zig b/src/global.zig
index fef27d3db..e98166c53 100644
--- a/src/global.zig
+++ b/src/global.zig
@@ -85,7 +85,7 @@ pub const Output = struct {
// On Linux, thread may be undefined
// Fortunately, we can use a different syscall that only affects the current thread
if (Environment.isLinux) {
- _ = std.os.linux.prctl(std.os.PR.SET_NAME, @ptrToInt(name.ptr), 0, 0, 0);
+ _ = std.os.prctl(.SET_NAME, .{@ptrToInt(name.ptr)}) catch 0;
} else {
thread.setName(name) catch {};
}