diff -r 76c96ee18221 -r af7e2d80dee6 src/server/util/system.c --- a/src/server/util/system.c Sat Feb 04 10:06:25 2017 +0100 +++ b/src/server/util/system.c Tue Feb 14 12:56:23 2017 +0100 @@ -328,6 +328,17 @@ return dir; } +int system_close(int fd) { + while(close(fd)) { + if(errno != EINTR) { + return -1; + } else { + log_ereport(LOG_VERBOSE, "close interrupted by signal"); // TODO: use debug log level + } + } + return 0; +} + NSAPI_PUBLIC int getThreadMallocKey(void) {