workerman What should I do if I can’t close it?
Problem: Executing Worker::stopAll() in the startup script does not stop workererman. Worker::stopAll() is only effective when executed in the main process running workererman, and has no effect when executed by other external processes. .
The process of stopping Workerman is
1. Find the Workerman main process pid
2. Send the SIGINT signal to the pid (posix_kill(SIGINT, pid) )
3. After the worker main process receives the SIGINT signal, it executes Worker::stopAll() to complete the service stop.
These three steps should be encapsulated inside Workerman. The calling process is
1. Set $argv = 'stop';
2. Run Worker::runAll();
Recommended: workermanTutorial
The above is the detailed content of What should I do if workerman cannot be closed?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver CS6
Visual web development tools