8000 [Process] Stopping of processes inconsistent between platforms · Issue #20259 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Process] Stopping of processes inconsistent between platforms #20259
Closed
@sustmi

Description

@sustmi

On Linux, the primary implementation of Process::stop() is calling proc_terminate() with TERM signal.
This effectively kills the process but usually not its child processes.

On Windows, however, taskkill command with /T switch is used so whole process sub-tree is killed.

I found that the taskkill command for Windows platforms was added here: symfony/process@1eb5593#diff-9a01fc0e340da4c3f1e4a16029a63977R626 .
But the commit message says nothing about any need to kill the whole process tree:

[Process] Make Process::start non-blocking on Windows platform

Is there any reason for this inconsistency?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0