X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fgssd%2Fsvcgssd.c;h=6ca0e8d762bf2ae36c321b97bb54f7efbfafd6cf;hp=37e04075c7d8edb981ece4dfb36bacc8ae06e2ca;hb=3724317e223d46908aac2405bbd73ea2de4f36e5;hpb=395a1d1586c131d3830fac58d6aa6f9ac8e3408f diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c index 37e0407..6ca0e8d 100644 --- a/utils/gssd/svcgssd.c +++ b/utils/gssd/svcgssd.c @@ -37,7 +37,9 @@ */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include +#endif /* HAVE_CONFIG_H */ #include #include @@ -125,12 +127,16 @@ mydaemon(int nochdir, int noclose) } static void -release_parent() +release_parent(void) { int status; if (pipefds[1] > 0) { - write(pipefds[1], &status, 1); + if (write(pipefds[1], &status, 1) != 1) { + printerr(1, + "WARN: writing to parent pipe failed: errno %d (%s)\n", + errno, strerror(errno)); + } close(pipefds[1]); pipefds[1] = -1; }