diff options
| author | Juan Linietsky | 2014-04-05 12:39:30 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-04-05 12:39:30 -0300 |
| commit | 9f33134c93ecbadda70e8eefc50563e29b2eb7f2 (patch) | |
| tree | 299ded94fe74a61bf8094935d0f3283f6f30e435 /drivers/unix/os_unix.cpp | |
| parent | 35b84d2c85fd152bee05d7d5a05e20a5f602a285 (diff) | |
| download | godot-9f33134c93ecbadda70e8eefc50563e29b2eb7f2.tar.gz godot-9f33134c93ecbadda70e8eefc50563e29b2eb7f2.tar.zst godot-9f33134c93ecbadda70e8eefc50563e29b2eb7f2.zip | |
Diffstat (limited to 'drivers/unix/os_unix.cpp')
| -rw-r--r-- | drivers/unix/os_unix.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index 399d0247f..1af37e2a6 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -333,6 +333,12 @@ Error OS_Unix::kill(const ProcessID& p_pid) { return ret?ERR_INVALID_PARAMETER:OK; } +int OS_Unix::get_process_ID() const { + + return getpid(); +}; + + bool OS_Unix::has_environment(const String& p_var) const { return getenv(p_var.utf8().get_data())!=NULL; |
