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 a07c3be6eb..ab2395e959 100644
--- a/nix/libutil/util.hh
+++ b/nix/libutil/util.hh
@@ -173,6 +173,8 @@ MakeError(EndOfFile, Error)
/* Read a file descriptor until EOF occurs. */
string drainFD(int fd);
+void waitForMessage(int fd, const char *message);
+
/* Automatic cleanup of resources. */
@@ -300,6 +302,9 @@ void closeMostFDs(const set<int> & exceptions);
/* Set the close-on-exec flag for the given file descriptor. */
void closeOnExec(int fd);
+/* Clear the close-on-exec flag for the given file descriptor. */
+void keepOnExec(int fd);
+
/* Common initialisation performed in child processes. */
void commonChildInit(Pipe & logPipe);