DPDK patches and discussions
 help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: Maryam Tahhan <maryam.tahhan@intel.com>, dev@dpdk.org
Cc: patrick.g.kutch@intel.com
Subject: Re: [dpdk-dev] [PATCH] dpdk_procinfo: check for primary process
Date: Wed, 7 Sep 2016 11:42:53 +0300	[thread overview]
Message-ID: <afc14ee7-a330-7377-3610-644a3267f792@redhat.com> (raw)
In-Reply-To: <1473181925-127253-1-git-send-email-maryam.tahhan@intel.com>

On 09/06/2016 08:12 PM, Maryam Tahhan wrote:
> 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");

I don't think there'a a need to YELL THAT MESSAGE.

	- Panu -

  reply	other threads:[~2016-09-07  8:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06 17:12 Maryam Tahhan
2016-09-07  8:42 ` Panu Matilainen [this message]
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=afc14ee7-a330-7377-3610-644a3267f792@redhat.com \
    --to=pmatilai@redhat.com \
    --cc=dev@dpdk.org \
    --cc=maryam.tahhan@intel.com \
    --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).