1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

Handle the case where waitpid returns errno EINTR.

This case indicates that a debugger is attached, and `waitpid` should be called again.
Log errors when threads exit with `errno`.
This commit is contained in:
Lukas Tenbrink
2025-04-07 14:19:05 +02:00
parent a210fe6dbd
commit 60784744ce
2 changed files with 64 additions and 33 deletions

View File

@@ -71,6 +71,9 @@ class OS_Unix : public OS {
void _load_iconv();
#endif
static int _wait_for_pid_completion(const pid_t p_pid, int *r_status, int p_options);
bool _check_pid_is_running(const pid_t p_pid, int *r_status) const;
protected:
// UNIX only handles the core functions.
// inheriting platforms under unix (eg. X11) should handle the rest