-
Notifications
You must be signed in to change notification settings - Fork 1.4k
signal support #1189
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
Merged
Merged
signal support #1189
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
1b17926
Initial signal support
palaviv 5b670f8
Simplify signal code
palaviv f540d31
Move static triggers array to signal.rs
palaviv ca23c43
Return previous handler from signal
palaviv 57cdae1
Add signal.getsignal
palaviv a7d96b7
Use rust signal module directly
palaviv e8001d7
Add signal.alarm
palaviv c1e0799
Add test for signal
palaviv 7061f1c
Add signal.{SIG_IGN, SIG_DFL}
palaviv a1af6b4
Iterate over triggers in check_sginals
palaviv 56b555b
Add signal numbers
palaviv 785b5d8
Improve signal test
palaviv 61bf076
User arr_macro to create triggers array
palaviv 9470d75
Compile nix parts only on unix
palaviv 48da527
Test signal only on unix
palaviv f3b4b28
SIGINT not defined on windows
palaviv 7cd5e89
Get SIG_IGN
palaviv 52d204c
Fix clippy warnings
palaviv 60b5d9d
Add empty check_signals on WASM
palaviv 25b9f35
Fix more clippy warnings
palaviv 3e07d61
Add vm to WASM check_sginals
palaviv 075f2c9
Use libc directly to set signal
palaviv 23cba40
Get signal numbers from libc
palaviv f24c6da
Add some windows test to signal
palaviv f600868
Define SIG_* on windows
palaviv c5486a6
Remove stub check_signals in WASM
palaviv 5e5d46d
Remove os_set_signal
palaviv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Remove os_set_signal
- Loading branch information
commit 5e5d46d373c7c9367b68e064d7d43a84aaa1e802
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@windelbouwman @coolreader18 any suggestion on how should I do this? This don't actually works...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore this. I had a typo...