Skip to content

bug(cli): Ctrl+C sent twice #4426

@jonashaag

Description

@jonashaag

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

import signal
import sys
import time


def handler(signum, frame):
    print(f"Signal handler called with signal: {signum}")
    time.sleep(2)
    sys.exit(1)


signal.signal(signal.SIGINT, handler)

while 1:
    time.sleep(0.1)
❯ pixi run python sig.py
^CSignal handler called with signal: 2
Signal handler called with signal: 2

Issue description

see above

Expected behavior

should be sent once

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcliIssue related to CLI

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions