note 120088 added to function.posix-getppid

From: Date: Tue, 25 Oct 2016 22:45:24 +0000
Subject: note 120088 added to function.posix-getppid
Groups: php.notes 
Request: Send a blank email to php-notes+get-206959@lists.php.net to get a copy of this message
WARNING, when using proc_open, your child will NOT get the parent php process's PID by using posix_getppid() , it will actually get the pid of a shell ( /bin/sh ? ) started by php, which in turn starts the child. i don't currently have a good workaround for this, but i'm working around it by having the parent write it's pid to a file and having the chidren read the file ---- Server IP: 72.52.91.14 Probable Submitter: 85.164.189.62 ---- Manual Page -- http://php.net/manual/en/function.posix-getppid.php Edit -- https://master.php.net/note/edit/120088 Del: integrated -- https://master.php.net/note/delete/120088/integrated Del: useless -- https://master.php.net/note/delete/120088/useless Del: bad code -- https://master.php.net/note/delete/120088/bad+code Del: spam -- https://master.php.net/note/delete/120088/spam Del: non-english -- https://master.php.net/note/delete/120088/non-english Del: in docs -- https://master.php.net/note/delete/120088/in+docs Del: other reasons-- https://master.php.net/note/delete/120088 Reject -- https://master.php.net/note/reject/120088 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206959) next »