Skip to content

Commit

Permalink
Merge pull request #14 from LonelySally/main
Browse files Browse the repository at this point in the history
fix:win下thinkphp获取pid方法错误
  • Loading branch information
cclilshy authored Oct 16, 2024
2 parents a402c5b + 1c7e19b commit 8609d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ThinkPHP/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function boot(): void
fwrite(STDOUT, sprintf(
"Worker %s@%d started.\n",
$this->getName(),
Kernel::getInstance()->supportProcessControl() ? getmypid() : posix_getpid()
Kernel::getInstance()->supportProcessControl() ? posix_getpid() : getmypid()
));

/*** register loop timer*/
Expand Down

0 comments on commit 8609d78

Please sign in to comment.