os: add a mechanism for signal handling
Open
enhancement
good first issue
- Dominant language
- C
- Stars
- 31
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
There is currently no way to handle system-signals in ASPL without custom implementation calls. I think this feature should be part of the standard library.
Example usage:
```aspl
import os
os.register_signal_handler(Signal.Interrupt, callback(){
print("SIGINT detected...")
// TODO: Do something here
}
```
Contributor guide
Research direction
No implementation files or tests are named. Start by locating the standard-library and runtime entry points for OS integration, then determine how signal registration should map to ASPL callbacks and what tests can demonstrate handling SIGINT.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- compilers, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100