summaryrefslogtreecommitdiff
path: root/nix/libutil/util.hh
diff options
context:
space:
mode:
Diffstat (limited to 'nix/libutil/util.hh')
-rw-r--r--nix/libutil/util.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/nix/libutil/util.hh b/nix/libutil/util.hh
index a07c3be6eb6..ab2395e959f 100644
--- a/nix/libutil/util.hh
+++ b/nix/libutil/util.hh
@@ -173,6 +173,8 @@ MakeError(EndOfFile, Error)
173/* Read a file descriptor until EOF occurs. */ 173/* Read a file descriptor until EOF occurs. */
174string drainFD(int fd); 174string drainFD(int fd);
175 175
176void waitForMessage(int fd, const char *message);
177
176 178
177 179
178/* Automatic cleanup of resources. */ 180/* Automatic cleanup of resources. */
@@ -300,6 +302,9 @@ void closeMostFDs(const set<int> & exceptions);
300/* Set the close-on-exec flag for the given file descriptor. */ 302/* Set the close-on-exec flag for the given file descriptor. */
301void closeOnExec(int fd); 303void closeOnExec(int fd);
302 304
305/* Clear the close-on-exec flag for the given file descriptor. */
306void keepOnExec(int fd);
307
303/* Common initialisation performed in child processes. */ 308/* Common initialisation performed in child processes. */
304void commonChildInit(Pipe & logPipe); 309void commonChildInit(Pipe & logPipe);
305 310