From afa7023b465d2abc5a85ecba0917cae974257eaf Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 26 Mar 2007 17:25:33 +0000 Subject: zcip: make it work on NOMMU (+ improve NOMMU support machinery) fsck: fix bad English in a comment --- include/libbb.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 32e099b..67fd2af 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -263,6 +263,13 @@ char *xrealloc_getcwd_or_warn(char *cwd); char *xmalloc_readlink_or_warn(const char *path); char *xmalloc_realpath(const char *path); extern void xstat(const char *filename, struct stat *buf); +/* Unlike waitpid, waits ONLY for one process, + * It's safe to pass negative 'pids' from failed [v]fork - + * wait4pid will return -1 and ECHILD in errno. + * IOW: rc = wait4pid(spawn(argv)); + * if (rc < 0) bb_perror_msg("%s", argv[0]); + * if (rc > 0) bb_error_msg("exit code: %d", rc); + */ extern int wait4pid(int pid); extern void xsetgid(gid_t gid); extern void xsetuid(uid_t uid); -- cgit v1.1