X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=eb03165f357edb71565bf38b5b9082fb8a9f02f6;hp=b62c8c1903a7cf30002b2a1a0ba57efd1f9ce2fa;hb=abb24e9d71b3edb9cacf4c04361cc0dfd4e6a061;hpb=11868b890d1a7f4cfbfb37099393b32019010f66 diff --git a/src/tincd.c b/src/tincd.c index b62c8c19..eb03165f 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -344,7 +344,7 @@ int main(int argc, char **argv) { if(show_version) { printf("%s version %s (built %s %s, protocol %d.%d)\n", PACKAGE, BUILD_VERSION, BUILD_DATE, BUILD_TIME, PROT_MAJOR, PROT_MINOR); - printf("Copyright (C) 1998-2014 Ivo Timmermans, Guus Sliepen and others.\n" + printf("Copyright (C) 1998-2015 Ivo Timmermans, Guus Sliepen and others.\n" "See the AUTHORS file for a complete list.\n\n" "tinc comes with ABSOLUTELY NO WARRANTY. This is free software,\n" "and you are welcome to redistribute it under certain conditions;\n" @@ -370,6 +370,10 @@ int main(int argc, char **argv) { umbilical = atoi(umbstr); if(fcntl(umbilical, F_GETFL) < 0) umbilical = 0; +#ifdef FD_CLOEXEC + if(umbilical) + fcntl(umbilical, F_SETFD, FD_CLOEXEC); +#endif } #endif