Skip to content

Commit

Permalink
rebased on master
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpatek committed Dec 23, 2024
1 parent 7b47c6b commit 22c5ec4
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,16 @@ which provides the `<signal.h>` header.

## Building Unit Tests
```bash
cd <sigfn_root_dir>
mkdir build && cd build
cmake .. -DSIGFN_TESTS=ON
make
cmake -S . -B build -DSIGFN_TESTS=ON
cmake --build build
```

## Running Unit Tests
```bash
cd <signfn_root_dir>/build/tests
./unit <unit-test-name>
# e.g.
./unit sigfn_handle
cd build
ctest -C Debug
```

## Usage

SigFn usage is similar to the `os/signal` package from Golang.

### C

Basic SigFn usage in C. It is copied from `pause.c` in the
Expand Down

0 comments on commit 22c5ec4

Please sign in to comment.