From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 17CE2A04DC; Tue, 1 Dec 2020 10:24:25 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EEBC4C996; Tue, 1 Dec 2020 10:24:23 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id CBE6CC98C for ; Tue, 1 Dec 2020 10:24:21 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 574AD5C0049; Tue, 1 Dec 2020 04:24:20 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 01 Dec 2020 04:24:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= GrNzch7wUP0VpzGH7g37s81MlkQhb/Har/gKXSfhtDM=; b=r3pJTobDPoPCDJ+w TezdRpe4qT77CeYlNDlnWElvm9WhYjKh5Q+cC4DUuq0fAPd56qVymzn4ov6sz6WN 8Xm3bu8njB77H9htxofvYW5o3dYWQ3qykSJ0Jp1FRiI6u/xCrZMYofunNad18sZf CwL/d0mrZIieYLMAcfquy/0aMDkprO4OjbcqMWLGKTYPdXJLcU3nkCvX8l+Yi0UB xZrB/w0jxfDFfa2dwK6NNrpuyfwRdqCyAX1vBEEbPNcBzapNtwqZY/4BmRKi8D4j JHNXujTT1jUS3lJ3qfULxJ8UNW1emDgdGqicBowH6EGF+oeWzxjZQWOtdgKxvG1/ 6puM+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=GrNzch7wUP0VpzGH7g37s81MlkQhb/Har/gKXSfht DM=; b=r4ixnDUQa4mpYQHz3YfsuNc5aQZ4hqz3247cbn0DDw9cEFIOt1mrZkpIF s3Zr6c49xQyGkPFvN6lS4kAMdjJc/HOZDls8YzdfCn0xgus5QmFik/Ya7DStG0JY Rp5i8/mePgEcs+wqurk4/28VqqTW1C2j1B5A8vIjnRxWrhP91BO/t9RKfFRDBNLL 1JEqJd2TGO1wkOlzeFfzpXOq5YBl4DDm3fskouAVC7TAFb/r4g56bVcjbS2ydu0m G9weYf+q41qzwq54fA57x8LtiTFtTAEfV5Nrj5mr9wpN19z2FvRlMN7FFrtf2td7 pNkchi+uFnuwugaA5uIUy2/VFQnyQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeivddgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 57D6F328005D; Tue, 1 Dec 2020 04:24:19 -0500 (EST) From: Thomas Monjalon To: prateekag Cc: dev@dpdk.org, Stephen Hemminger Date: Tue, 01 Dec 2020 10:24:16 +0100 Message-ID: <7271567.L1mZBfcePy@thomas> In-Reply-To: <77fa0d526982e5fd0a15b293599d973c@cse.iitb.ac.in> References: <77fa0d526982e5fd0a15b293599d973c@cse.iitb.ac.in> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] Printfs in Signal Handler X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 01/12/2020 04:39, prateekag: > printf is not signal safe and may lead to deadlock if kept in signal handler > and > signal comes in two quick succession. It will not lead to incorrect behavior > and it is a highly unlikely event. And an expert may understand why this > issue happened. Is it worthwhile to change these printfs to unix I/O write > call? Thank you for reporting. Please could you describe which files and functions you are talking about?