Lines Matching refs:proc

233 	struct php_process_handle *proc = (struct php_process_handle*)rsrc->ptr;  in proc_open_rsrc_dtor()  local
243 for (i = 0; i < proc->npipes; i++) { in proc_open_rsrc_dtor()
244 if (proc->pipes[i] != 0) { in proc_open_rsrc_dtor()
245 zend_list_delete(proc->pipes[i]); in proc_open_rsrc_dtor()
246 proc->pipes[i] = 0; in proc_open_rsrc_dtor()
251 WaitForSingleObject(proc->childHandle, INFINITE); in proc_open_rsrc_dtor()
252 GetExitCodeProcess(proc->childHandle, &wstatus); in proc_open_rsrc_dtor()
254 CloseHandle(proc->childHandle); in proc_open_rsrc_dtor()
259 wait_pid = waitpid(proc->child, &wstatus, 0); in proc_open_rsrc_dtor()
273 _php_free_envp(proc->env, proc->is_persistent); in proc_open_rsrc_dtor()
274 pefree(proc->command, proc->is_persistent); in proc_open_rsrc_dtor()
275 pefree(proc, proc->is_persistent); in proc_open_rsrc_dtor()
339 struct php_process_handle *proc; in PHP_FUNCTION() local
346 ZEND_FETCH_RESOURCE(proc, struct php_process_handle *, &zproc, -1, "process", le_proc_open); in PHP_FUNCTION()
349 if (TerminateProcess(proc->childHandle, 255)) { in PHP_FUNCTION()
355 if (kill(proc->child, sig_no) == 0) { in PHP_FUNCTION()
369 struct php_process_handle *proc; in PHP_FUNCTION() local
375 ZEND_FETCH_RESOURCE(proc, struct php_process_handle *, &zproc, -1, "process", le_proc_open); in PHP_FUNCTION()
387 struct php_process_handle *proc; in PHP_FUNCTION() local
401 ZEND_FETCH_RESOURCE(proc, struct php_process_handle *, &zproc, -1, "process", le_proc_open); in PHP_FUNCTION()
405 add_assoc_string(return_value, "command", proc->command, 1); in PHP_FUNCTION()
406 add_assoc_long(return_value, "pid", (long) proc->child); in PHP_FUNCTION()
410 GetExitCodeProcess(proc->childHandle, &wstatus); in PHP_FUNCTION()
418 wait_pid = waitpid(proc->child, &wstatus, WNOHANG|WUNTRACED); in PHP_FUNCTION()
420 if (wait_pid == proc->child) { in PHP_FUNCTION()
524 struct php_process_handle *proc; in PHP_FUNCTION() local
951 proc = (struct php_process_handle*)pemalloc(sizeof(struct php_process_handle), is_persistent); in PHP_FUNCTION()
952 proc->is_persistent = is_persistent; in PHP_FUNCTION()
953 proc->command = command; in PHP_FUNCTION()
954 proc->npipes = ndesc; in PHP_FUNCTION()
955 proc->child = child; in PHP_FUNCTION()
957 proc->childHandle = childHandle; in PHP_FUNCTION()
959 proc->env = env; in PHP_FUNCTION()
1022 proc->pipes[i] = Z_LVAL_P(retfp); in PHP_FUNCTION()
1026 proc->pipes[i] = 0; in PHP_FUNCTION()
1030 ZEND_REGISTER_RESOURCE(return_value, proc, le_proc_open); in PHP_FUNCTION()