Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/TSCExtensions/Process+Run.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private func setProcessPriority(pid: Process.ProcessID, newPriority: TaskPriorit
if !SetPriorityClass(handle, UInt32(newPriority.windowsProcessPriority)) {
logger.fault("Failed to set process priority of \(pid) to \(newPriority.rawValue): \(GetLastError())")
}
#elseif canImport(Darwin) || canImport(Android)
#elseif canImport(Darwin) || canImport(Android) || os(OpenBSD)
// `setpriority` is only able to decrease a process's priority and cannot elevate it. Since Swift task’s priorities
// can only be elevated, this means that we can effectively only change a process's priority once, when it is created.
// All subsequent calls to `setpriority` will fail. Because of this, don't log an error.
Expand Down