aboutsummaryrefslogtreecommitdiff
path: root/src/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
index 49a3384..21b2d75 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -13,6 +13,12 @@
#include <errno.h>
#include <string.h>
+/*
+ * Try writing to _fd for _retry times. Retries are reset after every succesful write.
+ */
int try_write(int _fd, char *_buff, int _size, int _retry);
+/*
+ * Fork, exec(argc, argv) with new STDIO, return PID
+ */
pid_t fork_run(int _stdin, int _stdout, int _stderr, int argc, char* argv[]);