Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
canlogserver: Follow Bash exit status when signaled
Bash and many other shells use 128 + signum as the exit status when a program get signal and exit. Follow the common behavior so that we know how the programs are killed. canlogserver.c was using a non-safe function, exit(3), in the signal handler. This commit replaces it with the way other programs in can-utils are using; set running = 0 to exit from the while loop. Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
- Loading branch information