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

Check for pid before attempting to copy #53

Merged
merged 1 commit into from
May 26, 2023

Conversation

disquisition
Copy link
Contributor

On Linux, when xclip isn't installed, copy will fail and raise a SIGPIPE that may end the parent process. This change ensures that nothing is streamed to the failed command and that the error is properly passed to the callback (if any).

For reference, see this issue: vercel/serve#111

disquisition referenced this pull request in vercel/serve Mar 8, 2017
It neither works, nor does it throw
@leo
Copy link

leo commented Mar 9, 2017

We need this in serve!

@xavi-
Copy link
Owner

xavi- commented May 26, 2023

Thanks!

@xavi- xavi- merged commit 597a7b6 into xavi-:master May 26, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants