-
Notifications
You must be signed in to change notification settings - Fork 29
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
Ignoring signals fails #57
Comments
Hey, @mkroening. I have looked into this issue and found out the problem lies in a mismatch between |
Hi @eduardvintila, thanks for looking into this! :) Unfortunately, this does not solve the issue for me. I can still produce the issue with the C code above. Can you reproduce the issue with an unpatched Unikraft? My specification: v0.5
unikraft:
version: stable
targets:
- name: default
architecture: x86_64
platform: kvm
libraries:
musl: stable Before and after applying the patch and rebuilding with Note that I circumvented the issue for now—at least for Rust startup. I opted out of using |
Hey, @mkroening! Sorry for taking so much time to get back with a response... The PR I have mentioned is now upstream. Please try to run everything while on the |
Thanks for your reply! I can confirm it works. The hint with uksignal was especially helpful. I found it surprising that Do you think that behavior should be changed, and I should open an issue, or is this intended? |
@mkroening, you make a very good point - probably the reason why this was not the case is that |
On Linux, when the Rust runtime initializes, it resets the
SIGPIPE
handler to ignore. (std/src/sys/unix/mod.rs#L59-L67
,std/src/sys/unix/mod.rs#L164-L195
):What Rust does is equivalent to the following C program:
Returning a success value without doing anything would resolve this problem.
The text was updated successfully, but these errors were encountered: