background-process
background-process copied to clipboard
posix_getpgid ( $this->pid ) instead of shell_exec(sprintf('ps %d 2>&1', $this->pid))
many shared hosters allow exec commands and we can use your library. but some of them has no access to "ps". so maybe it would be more compatible to check if running via posix_getpgid?