Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1100172imu; Wed, 16 Jan 2019 12:45:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN78VYmY2mqO2ZkrlvUablwbO1MI4U6zMh9Iv0pKF1gJe/twa75WHADmXeibCwbb90/Fc6RW X-Received: by 2002:a62:1992:: with SMTP id 140mr11793551pfz.33.1547671523727; Wed, 16 Jan 2019 12:45:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547671523; cv=none; d=google.com; s=arc-20160816; b=lDHgIjDnkc1UNq1FhCDWvp2+oIb7EJja7ATRKhcKiEySL4ZCjRsrdqTtMR+N2SlmEp CfeJg00Z2wOXdfw79hScnIc2RwQj9DoDK0Vm/oIBRbVdc75Gl5zgQkHy5xtZXxKNF/bN GhJlaQ/XeYrxcVqaJ8aOtf/fbRdSj7o1iZI1jd7RIJRNv+Zt3+0r+t1Wd3IgtoK2Avl6 55hPijUXUVeZUn1EKy9l7boP5fsFior2IwhLmNXxFGN7KnOok08qeZGhIr4Qg/lEYyTD wQW/WO9rnkV1lN/xIeLo/yh2SO3+mda6vPOp4Niz/NkZ2nyRBMW4C9UyHuyJ/a3gFgYF QJGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=gTXrSbsXtEYj/aHoM+7ZmI9eqK2Y7zMHWBrPbYsI9P0=; b=qBKKzDqG0th0AZGrXYThl32z42/PzaqIw8qOVjBKBARZM2Kjk4N3mNR75AxucVw+nn mRS57MHioMX5Y+JisJXf3dM2E81+PHZ8PbCKLGj4/kSMQ4c44WmsVY7k85x9hxrJNG7f 3Dt50kgJz4DiEJfWYDZXuvwJHzrEJnnyVCVgXyMVr9w9qa3tmSbLycComC+Cpn6IYrGd bbc/jsPMlRGSMYQpFDfTkonMhwYzZ11hDQ8HL5C7vblB0W4icZT2dDQxVa0sYQec50MZ IyGqj9whLKaq+INsDyjDfGrz18PeJ62DvqiQBCAzeXnFFBd/JtsYM553LNpzOZFCoclr 6qng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a185si6617166pge.404.2019.01.16.12.45.07; Wed, 16 Jan 2019 12:45:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731531AbfAPDja (ORCPT + 99 others); Tue, 15 Jan 2019 22:39:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:35050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730481AbfAPDja (ORCPT ); Tue, 15 Jan 2019 22:39:30 -0500 Received: from vmware.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9935120840; Wed, 16 Jan 2019 03:39:29 +0000 (UTC) Date: Tue, 15 Jan 2019 22:39:27 -0500 From: Steven Rostedt To: Taeung Song Cc: linux-kernel@vger.kernel.org, "linux-trace-devel@vger.kernel.org" Subject: Re: [PATCH v2] plugin python: Adjust the handling after PyRun_String() failed Message-ID: <20190115223927.0e6aad61@vmware.local.home> In-Reply-To: <1493261758-32597-1-git-send-email-treeze.taeung@gmail.com> References: <1493261758-32597-1-git-send-email-treeze.taeung@gmail.com> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Apr 2017 11:55:58 +0900 Taeung Song wrote: > Even though PyRun_String() failed, > just 0 will be returned but we need to return -1 > that means error status, so fix it. Ug, I just noticed this patch floating in the flood of my INBOX. I just applied it, and will be pushing it out soon. Thanks, and I'm really sorry for not seeing it. -- Steve > > Signed-off-by: Taeung Song > --- > plugin_python.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/plugin_python.c b/plugin_python.c > index 2997679..c283ed7 100644 > --- a/plugin_python.c > +++ b/plugin_python.c > @@ -55,7 +55,7 @@ static int load_plugin(struct pevent *pevent, const char *path, > > free(load); > > - return 0; > + return res ? 0 : -1; > } > > int PEVENT_PLUGIN_LOADER(struct pevent *pevent)