From: Maryam Tahhan <maryam.tahhan@intel.com>
To: dev@dpdk.org
Cc: patrick.g.kutch@intel.com, Maryam Tahhan <maryam.tahhan@intel.com>
Subject: [dpdk-dev] [PATCH] dpdk_procinfo: check for primary process
Date: Tue, 6 Sep 2016 18:12:05 +0100 [thread overview]
Message-ID: <1473181925-127253-1-git-send-email-maryam.tahhan@intel.com> (raw)
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
next reply other threads:[~2016-09-06 17:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-06 17:12 Maryam Tahhan [this message]
2016-09-07 8:42 ` Panu Matilainen
2016-09-07 10:40 ` Mcnamara, John
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1473181925-127253-1-git-send-email-maryam.tahhan@intel.com \
--to=maryam.tahhan@intel.com \
--cc=dev@dpdk.org \
--cc=patrick.g.kutch@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).