diff options
Diffstat (limited to '')
-rw-r--r-- | src/regress/lib/libc/sys/t_fork.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regress/lib/libc/sys/t_fork.c b/src/regress/lib/libc/sys/t_fork.c index 76d66ce9d4..04157efc5d 100644 --- a/src/regress/lib/libc/sys/t_fork.c +++ b/src/regress/lib/libc/sys/t_fork.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_fork.c,v 1.1 2021/09/02 12:40:44 mbuhl Exp $ */ | 1 | /* $OpenBSD: t_fork.c,v 1.2 2021/09/02 15:28:41 mbuhl Exp $ */ |
2 | /* $NetBSD: t_fork.c,v 1.4 2019/04/06 15:41:54 kamil Exp $ */ | 2 | /* $NetBSD: t_fork.c,v 1.4 2019/04/06 15:41:54 kamil Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -34,6 +34,9 @@ __COPYRIGHT("@(#) Copyright (c) 2018, 2019\ | |||
34 | __RCSID("$NetBSD: t_fork.c,v 1.4 2019/04/06 15:41:54 kamil Exp $"); | 34 | __RCSID("$NetBSD: t_fork.c,v 1.4 2019/04/06 15:41:54 kamil Exp $"); |
35 | 35 | ||
36 | #include <sys/param.h> | 36 | #include <sys/param.h> |
37 | #ifdef __OpenBSD__ | ||
38 | #include <sys/proc.h> | ||
39 | #endif | ||
37 | #include <sys/types.h> | 40 | #include <sys/types.h> |
38 | #include <sys/sysctl.h> | 41 | #include <sys/sysctl.h> |
39 | #include <sys/wait.h> | 42 | #include <sys/wait.h> |
@@ -118,10 +121,8 @@ await_stopped_child(pid_t process) | |||
118 | continue; | 121 | continue; |
119 | if (p[i].p_ppid != process) | 122 | if (p[i].p_ppid != process) |
120 | continue; | 123 | continue; |
121 | #ifndef __OpenBSD__ | ||
122 | if (p[i].p_stat != LSSTOP) | 124 | if (p[i].p_stat != LSSTOP) |
123 | continue; | 125 | continue; |
124 | #endif | ||
125 | child = p[i].p_pid; | 126 | child = p[i].p_pid; |
126 | break; | 127 | break; |
127 | } | 128 | } |