DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] dpdk_procinfo: check for primary process
@ 2016-09-06 17:12 Maryam Tahhan
  2016-09-07  8:42 ` Panu Matilainen
  0 siblings, 1 reply; 3+ messages in thread
From: Maryam Tahhan @ 2016-09-06 17:12 UTC (permalink / raw)
  To: dev; +Cc: patrick.g.kutch, Maryam Tahhan

Add a check to see if the primary process is running and exit gracefully if it
is not.

Suggested-by: Patrick Kutch <patrick.g.kutch@intel.com>
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
---
 app/proc_info/main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app/proc_info/main.c b/app/proc_info/main.c
index 6dc0bbb..ddc8cf8 100644
--- a/app/proc_info/main.c
+++ b/app/proc_info/main.c
@@ -329,6 +329,11 @@ main(int argc, char **argv)
 	argc -= ret;
 	argv += (ret - 3);
 
+        if (!rte_eal_primary_proc_alive(NULL)) {
+                rte_exit(EXIT_FAILURE, "NO PRIMARY DPDK PROCESS IS RUNNING\n");
+        }
+
+
 	/* parse app arguments */
 	ret = proc_info_parse_args(argc, argv);
 	if (ret < 0)
-- 
2.4.11

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

end of thread, other threads:[~2016-09-07 10:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-06 17:12 [dpdk-dev] [PATCH] dpdk_procinfo: check for primary process Maryam Tahhan
2016-09-07  8:42 ` Panu Matilainen
2016-09-07 10:40   ` Mcnamara, John

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).