From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 1AAB71B027; Mon, 21 May 2018 13:41:44 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 May 2018 04:41:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,426,1520924400"; d="scan'208";a="42619241" Received: from silpixa00383879.ir.intel.com (HELO silpixa00383879.ger.corp.intel.com) ([10.237.223.127]) by orsmga007.jf.intel.com with ESMTP; 21 May 2018 04:41:42 -0700 From: Radu Nicolau To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@intel.com, Radu Nicolau , stable@dpdk.org Date: Mon, 21 May 2018 12:35:47 +0100 Message-Id: <1526902547-12710-1-git-send-email-radu.nicolau@intel.com> X-Mailer: git-send-email 2.7.5 Subject: [dpdk-stable] [PATCH] test: fix hang on FreeBSD X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2018 11:41:45 -0000 Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Signed-off-by: Radu Nicolau --- 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