From 399d2b5c24aaa059104a89058c7d4c8b97f41629 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 25 May 2006 23:02:40 +0000 Subject: Rich Felker suggested removing dprintf() from watch, and one thing led to another... This adds bb_xspawn() support, which does vfork/exec. (I don't know why using a static instead of a local adds ~40 bytes, but using the local doesn't work...) --- include/libbb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index ca3afea98..928e25d30 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -146,6 +146,8 @@ extern void bb_fflush_stdout_and_exit(int retval) ATTRIBUTE_NORETURN; extern void xstat(const char *filename, struct stat *buf); extern int bb_xsocket(int domain, int type, int protocol); +extern pid_t bb_spawn(char **argv); +extern pid_t bb_xspawn(char **argv); extern void bb_xdaemon(int nochdir, int noclose); extern void bb_xbind(int sockfd, struct sockaddr *my_addr, socklen_t addrlen); extern void bb_xlisten(int s, int backlog); -- cgit v1.2.3