aboutsummaryrefslogtreecommitdiffhomepage
path: root/postfork.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-27 19:20:27 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-29 16:14:51 -0800
commit4e912ef83df234d34fff4156cd2bfb165e113674 (patch)
tree1f7531eab6e52ee1a123df11066c6452116167d6 /postfork.h
parentb17dfff3fdaa40d9199217850770869a93229a30 (diff)
Added postfork
Diffstat (limited to 'postfork.h')
-rw-r--r--postfork.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/postfork.h b/postfork.h
new file mode 100644
index 00000000..9eaf06e2
--- /dev/null
+++ b/postfork.h
@@ -0,0 +1,26 @@
+/** \file postfork.h
+
+ Functions that we may safely call after fork(), of which there are very few. In particular we cannot allocate memory, since we're insane enough to call fork from a multithreaded process.
+*/
+
+#ifndef FISH_POSTFORK_H
+#define FISH_POSTFORK_H
+
+#include <wchar.h>
+#include <signal.h>
+#include <unistd.h>
+#include <sys/time.h>
+#include <list>
+
+#include "config.h"
+#include "common.h"
+#include "util.h"
+#include "proc.h"
+#include "wutil.h"
+#include "io.h"
+
+
+int set_child_group( job_t *j, process_t *p, int print_errors );
+int setup_child_process( job_t *j, process_t *p );
+
+#endif