1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

* Call find-runtime-roots.pl from the garbage collector to prevent

running applications etc. from being garbage collected.
This commit is contained in:
Eelco Dolstra 2006-07-20 12:17:25 +00:00
parent ebcccbd358
commit c15f544356
6 changed files with 138 additions and 16 deletions

View file

@ -185,6 +185,11 @@ void readFull(int fd, unsigned char * buf, size_t count);
void writeFull(int fd, const unsigned char * buf, size_t count);
/* Read a file descriptor until EOF occurs. */
string drainFD(int fd);
/* Automatic cleanup of resources. */
class AutoDelete
@ -249,6 +254,15 @@ public:
};
/* Run a program and return its stdout in a string (i.e., like the
shell backtick operator). */
string runProgram(Path program);
/* Wrapper around _exit() on Unix and ExitProcess() on Windows. (On
Cygwin, _exit() doesn't seem to do the right thing.) */
void quickExit(int status);
/* User interruption. */
extern volatile sig_atomic_t _isInterrupted;