Skip to content

[Bug] quit() used instead of sys.exit() in cwrap.py, pwrap.py, pidsig.py, pidmayuresh1.py, and others #375

Description

@GaneshPatil7517

quit() is designed for the interactive Python interpreter and is not guaranteed to work in all environments (e.g., scripts run as services or inside Docker containers where site.py may not be loaded). Files affected:

File - Occurrences
demo/cwrap.py - 2
demo/pwrap.py - 2
tools/pidsig.py - 1
tools/pidmayuresh1.py - 1
tools/pidmayuresh3.py - 1
0mq/funbody.py - 1

All should use sys.exit(1) for reliable process termination.

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