os2/process_linux: improve error handling, use pidfd where possible, remove usage of fmt
This commit is contained in:
1 parent
a52f7c129f
commit
0f052dbde7
2 files changed
+202
-79
No files matched your search
@@ -23,6 +23,7 @@ General_Error :: enum u32 {
|
||||
Invalid_Dir,
|
||||
Invalid_Path,
|
||||
Invalid_Callback,
|
||||
Invalid_Command,
|
||||
|
||||
Pattern_Has_Separator,
|
||||
|
||||
@@ -69,6 +70,7 @@ error_string :: proc(ferr: Error) -> string {
|
||||
case .Invalid_Dir: return "invalid directory"
|
||||
case .Invalid_Path: return "invalid path"
|
||||
case .Invalid_Callback: return "invalid callback"
|
||||
case .Invalid_Command: return "invalid command"
|
||||
case .Unsupported: return "unsupported"
|
||||
case .Pattern_Has_Separator: return "pattern has separator"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user