Skip to content

AMQP Interop driver overrides global signal handlers and breaks SIGINT handling in other console commands #552

Description

@snewer

Description

When using the AMQP Interop driver (src/drivers/amqp_interop/Queue.php), its init() method is executed during application bootstrap (because the driver implements BootstrapInterface)

Inside init(), the driver overrides signal handlers for:

  • SIGTERM
  • SIGQUIT
  • SIGINT
  • SIGHUP

(see also: #379)

As a result, global signal handling is modified at application startup

This causes signals to stop working correctly in other console commands within the same project. For example, it becomes impossible to gracefully terminate unrelated console commands using SIGINT (Ctrl+C)

Package version

2.3.6

PHP version

8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions