get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/53084/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 53084,
    "url": "https://patches.dpdk.org/api/patches/53084/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1556210141-43153-1-git-send-email-mousuanming@huawei.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1556210141-43153-1-git-send-email-mousuanming@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1556210141-43153-1-git-send-email-mousuanming@huawei.com",
    "date": "2019-04-25T16:35:41",
    "name": "app/pdump: exits once primary app exited",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "33c5bcf7669c63c0017d5a0a746a6dec46881883",
    "submitter": {
        "id": 1301,
        "url": "https://patches.dpdk.org/api/people/1301/?format=api",
        "name": "Suanming.Mou",
        "email": "mousuanming@huawei.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1556210141-43153-1-git-send-email-mousuanming@huawei.com/mbox/",
    "series": [
        {
            "id": 4469,
            "url": "https://patches.dpdk.org/api/series/4469/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=4469",
            "date": "2019-04-25T16:35:41",
            "name": "app/pdump: exits once primary app exited",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/4469/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/53084/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/53084/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 44D5558EC;\n\tThu, 25 Apr 2019 16:33:42 +0200 (CEST)",
            "from huawei.com (szxga05-in.huawei.com [45.249.212.191])\n\tby dpdk.org (Postfix) with ESMTP id 5A0AF3977\n\tfor <dev@dpdk.org>; Thu, 25 Apr 2019 16:33:40 +0200 (CEST)",
            "from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60])\n\tby Forcepoint Email with ESMTP id 1E66B6C8987E82CF52CF\n\tfor <dev@dpdk.org>; Thu, 25 Apr 2019 22:33:36 +0800 (CST)",
            "from huawei.com (10.175.100.202) by DGGEMS405-HUB.china.huawei.com\n\t(10.3.19.205) with Microsoft SMTP Server id 14.3.439.0;\n\tThu, 25 Apr 2019 22:33:30 +0800"
        ],
        "From": "Suanming.Mou <mousuanming@huawei.com>",
        "To": "<reshma.pattan@intel.com>",
        "CC": "<dev@dpdk.org>",
        "Date": "Thu, 25 Apr 2019 16:35:41 +0000",
        "Message-ID": "<1556210141-43153-1-git-send-email-mousuanming@huawei.com>",
        "X-Mailer": "git-send-email 1.8.3.4",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.175.100.202]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev] [PATCH] app/pdump: exits once primary app exited",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "If primary app exited, meaningless for pdump keeps running anymore.\n\nSigned-off-by: Suanming.Mou <mousuanming@huawei.com>\n---\n app/pdump/main.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/app/pdump/main.c b/app/pdump/main.c\nindex 3d208548fa13..f1ff2a3ceb4f 100644\n--- a/app/pdump/main.c\n+++ b/app/pdump/main.c\n@@ -847,6 +847,10 @@ struct parse_val {\n \t\tpdump_rxtx(pt->rx_ring, pt->rx_vdev_id, &pt->stats);\n \tif (pt->dir & RTE_PDUMP_FLAG_TX)\n \t\tpdump_rxtx(pt->tx_ring, pt->tx_vdev_id, &pt->stats);\n+\n+\t/* Once primary exits, so will I. */\n+\tif (!rte_eal_primary_proc_alive(NULL))\n+\t\tquit_signal = 1;\n }\n \n static int\n",
    "prefixes": []
}