mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Implement base::is_process_running() for Unix-like platforms
This commit is contained in:
parent
989698dc6a
commit
98f2aca5ca
@ -13,6 +13,7 @@
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <signal.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
@ -51,7 +52,7 @@ pid get_current_process_id()
|
||||
|
||||
bool is_process_running(pid pid)
|
||||
{
|
||||
// TODO
|
||||
return (kill(pid, 0) == 0);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user