Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird new SIGPIPE exception #79

Open
pfuntner opened this issue Aug 1, 2020 · 0 comments
Open

Weird new SIGPIPE exception #79

pfuntner opened this issue Aug 1, 2020 · 0 comments

Comments

@pfuntner
Copy link
Owner

pfuntner commented Aug 1, 2020

I wrote a new tool that uses the SIGPIPE handler to exit when the signal is sent but I got a weird error:

$ git-new-files | head
bin/git-new-files
bin/rotate
bin/gityup.py
bin/ansible-host-data
bin/ansible-json
bin/add-python-debugging
bin/grep-matrix
bin/inventory-to-config
bin/git-files
bin/git-clone
Exception ignored in: <module 'threading' from '/usr/lib/python3.6/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 1279, in _shutdown
    def _shutdown():
  File "/home/mrbruno/bin/git-new-files", line 24, in <lambda>
    signal.signal(signal.SIGPIPE, lambda signum, stack_frame: exit(0))
  File "/usr/lib/python3.6/_sitebuiltins.py", line 26, in __call__
    raise SystemExit(code)
SystemExit: 0
$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant