diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index a6229a5e1..746db1c0e 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -743,7 +743,7 @@ int bb_execvp(const char *file, char *const argv[]) FAST_FUNC; | |||
743 | pid_t spawn(char **argv) FAST_FUNC; | 743 | pid_t spawn(char **argv) FAST_FUNC; |
744 | pid_t xspawn(char **argv) FAST_FUNC; | 744 | pid_t xspawn(char **argv) FAST_FUNC; |
745 | 745 | ||
746 | int safe_waitpid(int pid, int *wstat, int options) FAST_FUNC; | 746 | pid_t safe_waitpid(pid_t pid, int *wstat, int options) FAST_FUNC; |
747 | /* Unlike waitpid, waits ONLY for one process. | 747 | /* Unlike waitpid, waits ONLY for one process. |
748 | * It's safe to pass negative 'pids' from failed [v]fork - | 748 | * It's safe to pass negative 'pids' from failed [v]fork - |
749 | * wait4pid will return -1 (and will not clobber [v]fork's errno). | 749 | * wait4pid will return -1 (and will not clobber [v]fork's errno). |
@@ -751,14 +751,14 @@ int safe_waitpid(int pid, int *wstat, int options) FAST_FUNC; | |||
751 | * if (rc < 0) bb_perror_msg("%s", argv[0]); | 751 | * if (rc < 0) bb_perror_msg("%s", argv[0]); |
752 | * if (rc > 0) bb_error_msg("exit code: %d", rc); | 752 | * if (rc > 0) bb_error_msg("exit code: %d", rc); |
753 | */ | 753 | */ |
754 | int wait4pid(int pid) FAST_FUNC; | 754 | int wait4pid(pid_t pid) FAST_FUNC; |
755 | int wait_any_nohang(int *wstat) FAST_FUNC; | 755 | pid_t wait_any_nohang(int *wstat) FAST_FUNC; |
756 | #define wait_crashed(w) ((w) & 127) | 756 | #define wait_crashed(w) ((w) & 127) |
757 | #define wait_exitcode(w) ((w) >> 8) | 757 | #define wait_exitcode(w) ((w) >> 8) |
758 | #define wait_stopsig(w) ((w) >> 8) | 758 | #define wait_stopsig(w) ((w) >> 8) |
759 | #define wait_stopped(w) (((w) & 127) == 127) | 759 | #define wait_stopped(w) (((w) & 127) == 127) |
760 | /* wait4pid(spawn(argv)) + NOFORK/NOEXEC (if configured) */ | 760 | /* wait4pid(spawn(argv)) + NOFORK/NOEXEC (if configured) */ |
761 | int spawn_and_wait(char **argv) FAST_FUNC; | 761 | pid_t spawn_and_wait(char **argv) FAST_FUNC; |
762 | struct nofork_save_area { | 762 | struct nofork_save_area { |
763 | jmp_buf die_jmp; | 763 | jmp_buf die_jmp; |
764 | const char *applet_name; | 764 | const char *applet_name; |