can-utils
can-utils copied to clipboard
Replace the unportable signal with sigaction
According to the Linux manpage signal(2) the function signal should not be used as its behaviour can vary across platforms. Currently glibc mimics the BSD behaviour which implicitly uses the flag SA_RESTART. This behaviour can be different when other libc are used. Instead of signal sigaction should be used.
Feel free to create a patch.