Skip to content

Bug: Program hangs on Ctrl+C (KeyboardInterrupt) with subprocess error #32

@rifkymcz

Description

@rifkymcz

When using rsloop, the program does not exit cleanly when pressing Ctrl+C (KeyboardInterrupt). Instead, it sometimes hangs and shows a subprocess-related error.

Error:

^Csubprocess pipe_data_received failed
Traceback (most recent call last):
File "/usr/lib/python3.13/asyncio/subprocess.py", line 64, in pipe_data_received
def pipe_data_received(self, fd, data):

KeyboardInterrupt

Steps to reproduce:

  1. Install and use rsloop
  2. Run an async application (e.g. aiogram bot or any aiohttp-based app)
  3. Press Ctrl+C to stop the program

Expected:
Program should stop immediately and exit cleanly

Actual:
Program hangs during shutdown and prints subprocess-related error

Environment:
• Python: 3.12 / 3.13
• rsloop: 0.1.13

Notes:
• This issue was present before the FD leak issue and still occurs in v0.1.13
• Does not happen when using default asyncio loop or uvloops
• Likely related to subprocess handling or event loop shutdown not being fully implemented

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions