Mercurial > hg > octave-kai > gnulib-hg
comparison lib/cloexec.h @ 16235:18a38c9615f0
In commentary, do not use ` to quote.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 05 Jan 2012 23:53:49 -0800 |
parents | 8250f2777afc |
children | e542fd46ad6f |
comparison
equal
deleted
inserted
replaced
16234:f9b906545e2f | 16235:18a38c9615f0 |
---|---|
17 | 17 |
18 */ | 18 */ |
19 | 19 |
20 #include <stdbool.h> | 20 #include <stdbool.h> |
21 | 21 |
22 /* Set the `FD_CLOEXEC' flag of DESC if VALUE is true, | 22 /* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true, |
23 or clear the flag if VALUE is false. | 23 or clear the flag if VALUE is false. |
24 Return 0 on success, or -1 on error with `errno' set. | 24 Return 0 on success, or -1 on error with 'errno' set. |
25 | 25 |
26 Note that on MingW, this function does NOT protect DESC from being | 26 Note that on MingW, this function does NOT protect DESC from being |
27 inherited into spawned children. Instead, either use dup_cloexec | 27 inherited into spawned children. Instead, either use dup_cloexec |
28 followed by closing the original DESC, or use interfaces such as | 28 followed by closing the original DESC, or use interfaces such as |
29 open or pipe2 that accept flags like O_CLOEXEC to create DESC | 29 open or pipe2 that accept flags like O_CLOEXEC to create DESC |