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

Migrate to our own Signal type #365

Closed
wants to merge 14 commits into from
Closed

Migrate to our own Signal type #365

wants to merge 14 commits into from

Commits on May 13, 2024

  1. Define our own Signal type

    This is part of #353. This commit prepares for the transition to our own
    Signal type by defining the type and implementing some basic operations.
    magicant committed May 13, 2024
    Configuration menu
    Copy the full SHA
    6592a69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86adcc8 View commit details
    Browse the repository at this point in the history
  3. Raw signal numbers

    magicant committed May 13, 2024
    Configuration menu
    Copy the full SHA
    21699a3 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Signal::Number

    This commit adds a new variant Signal::Number(c_int) to allow specifying
    any signal by its raw signal number. This will make the parser for the
    trap built-in condition operand much simpler.
    magicant committed May 14, 2024
    Configuration menu
    Copy the full SHA
    366d798 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Replace SigSet with Signal array in System

    This commit replaces the SigSet type with an array of Signal in the
    System trait. This change is necessary because the SigSet type is
    specific to the nix crate, and the System trait should not depend on
    specific types from external crates.
    
    This commit also updates the implementations of the System trait to
    reflect this change. SelectSystem::wait_mask is now an optional Vec of
    Signal, and virtual Process now uses a BTreeSet of Signal instead of
    SigSet.
    magicant committed May 17, 2024
    Configuration menu
    Copy the full SHA
    fd68772 View commit details
    Browse the repository at this point in the history
  2. Define all_signals

    magicant committed May 17, 2024
    Configuration menu
    Copy the full SHA
    45b8b25 View commit details
    Browse the repository at this point in the history
  3. rt_range returns empty range when real-time signals are not supported

    This change makes `rt_range` return an empty range when the real system
    does not support real-time signals. This simplifies the code that uses
    `rt_range` because the caller does not need to handle the `None` case.
    magicant committed May 17, 2024
    Configuration menu
    Copy the full SHA
    6758997 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. Configuration menu
    Copy the full SHA
    8cd8f61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da46611 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2024

  1. Configuration menu
    Copy the full SHA
    0e93fbc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7dcbabb View commit details
    Browse the repository at this point in the history
  3. Remove impl TryFrom<ProcessState> for ExitStatus

    The conversion from ProcessState to ExitStatus is now done by the
    System trait as it depends on the system implementation. This commit
    removes the TryFrom implementation and replaces it with a call to
    System::exit_status_for_process_state.
    magicant committed May 19, 2024
    Configuration menu
    Copy the full SHA
    bbd4a46 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2024

  1. Remove impl From<Signal> for ExitStatus

    The conversion should be done by `SystemEx::exit_status_for_signal`.
    magicant committed May 20, 2024
    Configuration menu
    Copy the full SHA
    b10e1a4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    62c9cc0 View commit details
    Browse the repository at this point in the history