Skip to content

[Console] SIGINT not intercepted, process is stopped #48205

@GromNaN

Description

@GromNaN

Symfony version(s) affected

since 6.1.4 - 6.1.x-dev - 6.2.x-dev

Description

Using SignalableCommandInterface to intercept the signal SIGINT, the process is stopped while it was still running on previous minor versions.

How to reproduce

For Symfony World Online 2022, I created a sample command (code) to play with signals.

https://asciinema.org/a/su5VlgGiuRTBqSD4OXqSNn0XP

The command bin/console app:signal display a progress bar that change direction when Ctrl+C is hit.

When symfony/console is updated to 6.1.4 or newer, Ctrl+C stops the process.
https://asciinema.org/a/537232

Possible Solution

Related merge requests:

Full diff: symfony/console@v6.1.3...v6.1.4

Additional Context

No response

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy