From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2DC1344104; Wed, 29 May 2024 18:09:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D1C9240273; Wed, 29 May 2024 18:09:46 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 80E784026F for ; Wed, 29 May 2024 18:09:45 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6f4ed9dc7beso77891b3a.1 for ; Wed, 29 May 2024 09:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716998984; x=1717603784; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0UBCF83k+HEdYDz4JDnxEVusyveftl+Lo8ddoII7E9E=; b=oa+kZoltuoQG6AzY5F7ICw714XqIiyCwfq+XBKsABXIPH/hjliIi/FvJMydWSs1Pwa Y2KOlQDV0KiVqS21QyXO0xDh44l+QBTu5Y76g/MKM/v/LRjNZc398+oZNjVE4lcSoJVY ZFGdwFKOfkIKyQfWDOF+itArU+ayCQVQjpu5UJgbgi6kOy2G0kT5MB76jB0Axu1LQRQf l4OYGu46RFLOqcVcISV0KjvxkktLp7jeYaSuawl2GogAMLuNBjh4+QFWzUrRoKp+J5qQ GCNxNGjwb7MSRgtehEg2d8aLIfnuw9Q516DwsKNMbUPRxi7ceZr+EWXgY9tXq3mbY42G 2oCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716998984; x=1717603784; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0UBCF83k+HEdYDz4JDnxEVusyveftl+Lo8ddoII7E9E=; b=DORuduMVtAPE7V2J+aKNlxVJtonkOboz6ZsAjtZ+xBTvXZduPG26PayLIsekrogK2K xxY1qyjxgl3iJY4/2swlaU1CDn7z6Xt3HwM6FNU75mSkxDFS5USin6BF8InHzUkMHpDa iuuKvcioGgOMSjaQzXjNzLVYisVztIlsOr59v0ma9vuBqzoEyNryKVwQloBN+ev04SZg sfcwQlNxy61s2rmqZal0Nq9FN7KPLlhWPM+hQ7gglzeovRqP60EKZbC8MgdQk4mKM0wZ RbNVvc8uRB4PfFB/3y+elrY12iDU9klCz9VK8hHNfWzvbxn8Re40rYSlJl6Tlzl/p9V0 CpJg== X-Gm-Message-State: AOJu0YzsEXEyowvuLJb1t6fV41BxfvYYGtqFDygHZZ/BKuEqEgw8XUMB mn8+5yPP/3m5LK2s/i/lVO54LVJymdAC8gcw5E9MuFlBIUI9hWKhLOhygOc/Z9bN8f9DwzEy7oM a X-Google-Smtp-Source: AGHT+IHeCL9wzlC9orgPKAa/7kwWCsHHCViLip0R5dnhNOiQvh2AkGvBmMYjIdZ5paVtHZcdOKDPCQ== X-Received: by 2002:a05:6a20:1582:b0:1aa:674a:5e8a with SMTP id adf61e73a8af0-1b259acf5ecmr4084762637.25.1716998984525; Wed, 29 May 2024 09:09:44 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6be6cac52b9sm306713a12.70.2024.05.29.09.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 09:09:44 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 0/2] Fix pdump and dumpcap leaks on SIGTERM Date: Wed, 29 May 2024 09:08:05 -0700 Message-ID: <20240529160933.282846-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240226205143.66702-1-stephen@networkplumber.org> References: <20240226205143.66702-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fix bug where dumpcap and pdump programs would leave resources if killed with SIGTERM (or if file gets full). v2 - rebase and rewording Stephen Hemminger (2): app/dumpcap: handle SIGTERM and SIGHUP app/pdump: handle SIGTERM and SIGHUP app/dumpcap/main.c | 14 ++++++++++++-- app/pdump/main.c | 21 +++++++++++++++------ 2 files changed, 27 insertions(+), 8 deletions(-) -- 2.43.0