note 70094 added to ref.posix

From: Date: Tue, 03 Oct 2006 04:36:19 +0000
Subject: note 70094 added to ref.posix
Groups: php.notes 
Request: Send a blank email to php-notes+get-117973@lists.php.net to get a copy of this message
don't forget that in posix systems you can use /proc/$process_id/ files: auxv cmdline cwd environ exe fd maps mem mounts root stat statm status task wchan with it you can make somethings like: $PPID=getmypid(); $pid=pcntl_fork(); if ($pid==0){ while(1){ if (strpos(file_get_contents("/proc/$PPID/cmdline"),'php')===false) echo "parent pid die"; } }else{ // forked } with this you can use some libs that block signal or some bad signal handling or zombies process or anything you can think :) ---- Server IP: 200.185.109.13 Probable Submitter: 200.206.160.28 ---- Manual Page -- http://www.php.net/manual/en/ref.posix.php Edit -- https://master.php.net/note/edit/70094 Del: integrated -- https://master.php.net/note/delete/70094/integrated Del: useless -- https://master.php.net/note/delete/70094/useless Del: bad code -- https://master.php.net/note/delete/70094/bad+code Del: spam -- https://master.php.net/note/delete/70094/spam Del: non-english -- https://master.php.net/note/delete/70094/non-english Del: in docs -- https://master.php.net/note/delete/70094/in+docs Del: other reasons-- https://master.php.net/note/delete/70094 Reject -- https://master.php.net/note/reject/70094 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117973) next »