X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=CODING_STYLE;h=ed61ea9d28169d4d4f9fffbc9f1898314c4e6cb9;hb=243f760626232036dda3483f94152cc5ae63a1a1;hp=e89b3c67e5166e9ce62904baee55b08a10eb289b;hpb=5d2803744e2a425ad476737fb3f812833a632f7d;p=elogind.git diff --git a/CODING_STYLE b/CODING_STYLE index e89b3c67e..ed61ea9d2 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -429,3 +429,8 @@ and Linux/GNU-specific APIs, we generally prefer the POSIX APIs. If there aren't, we are happy to use GNU or Linux APIs, and expect non-GNU implementations of libc to catch up with glibc. + +- Whenever installing a signal handler, make sure to set SA_RESTART for it, so + that interrupted system calls are automatically restarted, and we minimize + hassles with handling EINTR (in particular as EINTR handling is pretty broken + on Linux).