From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id A2C6B5A0082 for ; Mon, 13 Feb 2023 02:22:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676251359; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+H4ehvLcmVaJs5EPn9ogUmquntatbyXnsm63Eyrq+4k=; b=iaWcSPNNYq5fvWrCnew/3011601g/LcJdmL2+QDaTBP2RqlVc44aWunRcbeCmZ3ZjPpgWX bQCQhlqDkxCGo7oYoSDP8S/sWrSUwgiZVs8nuUjzGyoMq1BXXwl/uRBLmPRD92U4f69N+0 DRnj36wiGT0u86hk2rEzlmKiXG4eJAM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-557-PCP_Ba_2OieZpd1beAN8nQ-1; Sun, 12 Feb 2023 20:22:37 -0500 X-MC-Unique: PCP_Ba_2OieZpd1beAN8nQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 10CC9101A521 for ; Mon, 13 Feb 2023 01:22:37 +0000 (UTC) Received: from maya.cloud.tilaa.com (unknown [10.33.32.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 64B112026D4B; Mon, 13 Feb 2023 01:22:36 +0000 (UTC) Date: Mon, 13 Feb 2023 02:15:43 +0100 From: Stefano Brivio To: Paul Holzinger Subject: Re: [PATCH 1/2] pasta: correctly exit when execvp() fails Message-ID: <20230213021543.11163e99@elisabeth> In-Reply-To: <20230208155441.64306-1-pholzing@redhat.com> References: <20230208155441.64306-1-pholzing@redhat.com> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: WIVPRT5XT5T6FX24DQL3DAMJYV5KDYIT X-Message-ID-Hash: WIVPRT5XT5T6FX24DQL3DAMJYV5KDYIT X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.3 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 8 Feb 2023 16:54:40 +0100 Paul Holzinger wrote: > By default clone() will create a child that does not send SIGCHLD when > the child exits. The caller has to specifiy the SIGNAL it should get in > the flag bitmask. > see clone(2) under "The child termination signal" > > This fixes the problem where pasta would not exit when the execvp() > call failed, i.e. when the command does not exists. > > Signed-off-by: Paul Holzinger Applied. -- Stefano