I don't know why, but getppid() returns wrong result for me when application is started

This commit is contained in:
Ilya Fedin 2020-05-07 16:17:06 +04:00
parent 07e851fcc8
commit b2ac83a76e
4 changed files with 40 additions and 7 deletions

1
env.h
View file

@ -3,6 +3,7 @@
#include <unistd.h>
pid_t get_parent_pid();
char* const* read_parent_env();
void env_free(char* const *env);