walkor / walkor/webman

内存监控任务 在windows下 无法调用posix_getppid 的错误问题

Open
#374 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
2.7k
Forks
251
PR merge metrics
No merged PRs in 30d

Description

Error: Call to undefined function process\posix_getppid() in D:\UI\d2wd-server\process\Monitor.php:182

process\Monitor的这个文件 在windows下 无法调用posix_getppid

177行
/**
* @param $memory_limit
* @return void
*/
public function checkMemory($memory_limit)
{
if (static::isPaused()) {
return;
}
$ppid = posix_getppid();

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in process/Monitor.php at checkMemory(), especially the code around lines 177-182, and reproduce the task on Windows. Trace how the parent process ID is used there; done means the Windows memory-monitoring task no longer raises the undefined-function error while retaining its intended behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
operating-systems, performance
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.