patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] test: fix hang on FreeBSD
@ 2018-05-21 11:35 Radu Nicolau
  2018-05-21 12:30 ` Thomas Monjalon
  2018-05-21 13:28 ` Burakov, Anatoly
  0 siblings, 2 replies; 7+ messages in thread
From: Radu Nicolau @ 2018-05-21 11:35 UTC (permalink / raw)
  To: dev; +Cc: thomas, ferruh.yigit, Radu Nicolau, stable

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
 test/test/test_debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/test/test_debug.c b/test/test/test_debug.c
index faf2cf5..56fadce 100644
--- a/test/test/test_debug.c
+++ b/test/test/test_debug.c
@@ -34,7 +34,8 @@ test_panic(void)
 		printf("Fork Failed\n");
 		return -1;
 	}
-	wait(&status);
+	sleep(1);
+	waitpid(pid, &status, WNOHANG);
 	if(status == 0){
 		printf("Child process terminated normally!\n");
 		return -1;
-- 
2.7.5

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-05-21 16:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-21 11:35 [dpdk-stable] [PATCH] test: fix hang on FreeBSD Radu Nicolau
2018-05-21 12:30 ` Thomas Monjalon
2018-05-21 12:58   ` Radu Nicolau
2018-05-21 13:16     ` Thomas Monjalon
2018-05-21 16:13     ` [dpdk-stable] [dpdk-dev] " Stephen Hemminger
2018-05-21 13:28 ` Burakov, Anatoly
2018-05-21 13:33   ` Radu Nicolau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).