snsinfu / ftrap

Simple linux utility that wraps command and signals file changes.
Boost Software License 1.0
0 stars 0 forks source link

Assertion failed: 0 (src/main.c: main: 96) #7

Open snsinfu opened 5 years ago

snsinfu commented 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)