note 128651 added to function.proc-get-status

From: Date: Fri, 30 Jun 2023 09:09:12 +0000
Subject: note 128651 added to function.proc-get-status
Groups: php.notes 
Request: Send a blank email to php-notes+get-220611@lists.php.net to get a copy of this message
If launching a GNU screen with proc_open, subsequents proc_get_status always return (wrongly) running = false $descriptorspec = array( 0 => array("pipe", "r"), // stdin 1 => array("pipe", "w"), // stdout 2 => array("pipe", "w") // stderr ); $p = proc_open('screen ...', $descriptorspec, $pipes); var_dump(proc_get_status($p)['running']); // false (wrong) ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.168 (proxied: 93.32.76.151) ---- Manual Page -- https://php.net/manual/en/function.proc-get-status.php Edit -- https://main.php.net/note/edit/128651 Del: integrated -- https://main.php.net/note/delete/128651/integrated Del: useless -- https://main.php.net/note/delete/128651/useless Del: bad code -- https://main.php.net/note/delete/128651/bad+code Del: spam -- https://main.php.net/note/delete/128651/spam Del: non-english -- https://main.php.net/note/delete/128651/non-english Del: in docs -- https://main.php.net/note/delete/128651/in+docs Del: other reasons-- https://main.php.net/note/delete/128651 Reject -- https://main.php.net/note/reject/128651 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220611) next »