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...)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user