os2/process_linux: improve error handling, use pidfd where possible, remove usage of fmt

This commit is contained in:
jason
2024-08-14 00:45:25 -04:00
parent a52f7c129f
commit 0f052dbde7
2 changed files with 202 additions and 79 deletions
+2
View File
@@ -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"
}