Open snsinfu opened 5 years ago
Assertion fails when the command exits due to a signal.
Create this Dockerfile:
FROM alpine WORKDIR /srv RUN apk add --no-cache curl \ && curl -fsSLO https://github.com/snsinfu/ftrap/releases/download/v0.3.0/ftrap \ && chmod u+x ftrap CMD ["/srv/ftrap", "-f/srv", "sleep", "100"]
Build and run:
docker build -t ftrap_test . docker run -it --rm ftrap_test
Then, press Ctrl-C. It triggers the assertion failure:
^CAssertion failed: 0 (src/main.c: main: 96)
Assertion fails when the command exits due to a signal.
Create this Dockerfile:
Build and run:
Then, press Ctrl-C. It triggers the assertion failure: