X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/45736f7396593c2f4ef9ebf35c561e7a32111f63..56c8ed69eff8342f692c427ce3d2cab6fd557001:/secnet.h diff --git a/secnet.h b/secnet.h index 3b54def..b2f6927 100644 --- a/secnet.h +++ b/secnet.h @@ -59,6 +59,10 @@ extern struct log_if *system_log; /* from process.c */ extern void start_signal_handling(void); +void afterfork(void); +/* Must be called before exec in every child made after + start_signal_handling. Safe to call in earlier children too. */ + /***** CONFIGURATION support *****/ extern bool_t just_check_config; /* If True then we're going to exit after @@ -170,6 +174,7 @@ extern void *safe_realloc_ary(void *p, size_t size, size_t count, const char *message); void setcloexec(int fd); /* cannot fail */ +void setnonblock(int fd); /* cannot fail */ void pipe_cloexec(int fd[2]); /* pipe(), setcloexec() twice; cannot fail */ extern int sys_cmd(const char *file, const char *argc, ...);