* [dpdk-dev] [PATCH v2 1/1] dpdk_procinfo: check for primary process
@ 2016-09-07 10:37 Maryam Tahhan
2016-09-08 12:31 ` Van Haaren, Harry
0 siblings, 1 reply; 3+ messages in thread
From: Maryam Tahhan @ 2016-09-07 10:37 UTC (permalink / raw)
To: dev; +Cc: Maryam Tahhan
Add a check to see if the primary process is running and exit gracefully if it
is not.
v2:
* Updated to tone down message and remove unnecessary brackets.
Suggested-by: Patrick Kutch <patrick.g.kutch@intel.com>
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
---
app/proc_info/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/proc_info/main.c b/app/proc_info/main.c
index 6dc0bbb..9c1eb91 100644
--- a/app/proc_info/main.c
+++ b/app/proc_info/main.c
@@ -329,6 +329,9 @@ 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
* Re: [dpdk-dev] [PATCH v2 1/1] dpdk_procinfo: check for primary process
2016-09-07 10:37 [dpdk-dev] [PATCH v2 1/1] dpdk_procinfo: check for primary process Maryam Tahhan
@ 2016-09-08 12:31 ` Van Haaren, Harry
2016-09-23 18:44 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: Van Haaren, Harry @ 2016-09-08 12:31 UTC (permalink / raw)
To: Tahhan, Maryam, dev; +Cc: Tahhan, Maryam
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Maryam Tahhan
> Sent: Wednesday, September 7, 2016 11:38 AM
> To: dev@dpdk.org
> Cc: Tahhan, Maryam <maryam.tahhan@intel.com>
> Subject: [dpdk-dev] [PATCH v2 1/1] dpdk_procinfo: check for primary process
>
> Add a check to see if the primary process is running and exit gracefully if it
> is not.
> v2:
> * Updated to tone down message and remove unnecessary brackets.
>
> Suggested-by: Patrick Kutch <patrick.g.kutch@intel.com>
> Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH v2 1/1] dpdk_procinfo: check for primary process
2016-09-08 12:31 ` Van Haaren, Harry
@ 2016-09-23 18:44 ` Thomas Monjalon
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2016-09-23 18:44 UTC (permalink / raw)
To: Tahhan, Maryam; +Cc: dev, Van Haaren, Harry
2016-09-08 12:31, Van Haaren, Harry:
> > Add a check to see if the primary process is running and exit gracefully if it
> > is not.
> > v2:
> > * Updated to tone down message and remove unnecessary brackets.
> >
> > Suggested-by: Patrick Kutch <patrick.g.kutch@intel.com>
> > Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
>
> Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Applied (with tab indent), thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-23 18:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07 10:37 [dpdk-dev] [PATCH v2 1/1] dpdk_procinfo: check for primary process Maryam Tahhan
2016-09-08 12:31 ` Van Haaren, Harry
2016-09-23 18:44 ` Thomas Monjalon
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).