X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcloexec.c;h=48a0c97357cf91a4e9cd5ed6f44f200a398e7638;hb=HEAD;hp=d525202a0514533e1369284c092b3b31339bcd49;hpb=4b6dad7e35019625bd5eb30796beebac099a7422;p=gnulib.git diff --git a/lib/cloexec.c b/lib/cloexec.c index d525202a0..48a0c9735 100644 --- a/lib/cloexec.c +++ b/lib/cloexec.c @@ -1,6 +1,6 @@ /* closexec.c - set or clear the close-on-exec descriptor flag - Copyright (C) 1991, 2004-2006, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 1991, 2004-2006, 2009-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,9 +25,9 @@ #include #include -/* Set the `FD_CLOEXEC' flag of DESC if VALUE is true, +/* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true, or clear the flag if VALUE is false. - Return 0 on success, or -1 on error with `errno' set. + Return 0 on success, or -1 on error with 'errno' set. Note that on MingW, this function does NOT protect DESC from being inherited into spawned children. Instead, either use dup_cloexec