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

Explicitly handle SIGPIPE #10

Closed
ericpruitt opened this issue Dec 24, 2017 · 1 comment
Closed

Explicitly handle SIGPIPE #10

ericpruitt opened this issue Dec 24, 2017 · 1 comment

Comments

@ericpruitt
Copy link

When running mairix in a pipeline, mairix does not delete the lock file after receiving SIGPIPE, so running something like mairix --excerpt-output a:ericpruitt | less results in Database .../mairixdb appears to be locked by (pid,node,user)=(6387,sinister,ericpruitt) the next time around if less(1) was closed before mairix finished writing data the standard output.

@vandry
Copy link
Owner

vandry commented Dec 26, 2017

This is a duplicate of rc0#21

BTW I was thinking of solving the problem not by adding handling for SIGPIPE or other signals, but by removing the need to do locking at all, which would obviate the need to explicit cleanup. For that, see rc0#25

@vandry vandry closed this as completed Dec 26, 2017
vandry pushed a commit that referenced this issue Jan 1, 2022
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

2 participants