X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=CODING_STYLE;h=ed61ea9d28169d4d4f9fffbc9f1898314c4e6cb9;hp=e89b3c67e5166e9ce62904baee55b08a10eb289b;hb=87c42e3fa5a6f216efeb6de7125a4b9e16fd55bb;hpb=35eec258c4523c92fe985d764198b266ebc3881a 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).