From: Kouya Shimura Subject: Re: [PATCH] hotplug script: lock directory remains on error Date: Mon, 5 Jul 2010 10:21:18 +0900 Message-ID: <7klj9qpvu6.fsf@pingu.sky.yk.fujitsu.co.jp> References: <7kd3v9xqq3.fsf@pingu.sky.yk.fujitsu.co.jp> <19502.6886.128700.421247@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19502.6886.128700.421247@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > > Adding sigerr is extra. > > I'm not sure I follow this. Why is this a good idea ? Why not just > say "exit 1" in the error handler in this script ? Please see xen-hotplug-common.sh. Original (redefined) sigerr function writes some error status to the xenstore. On the other hand, the network-bridge script also includes locking.sh. But sigerr function is not defined in it. Actually I met "sh: sigerr: command not found" message on executing the network-bridge script. Thus, I defined it in locking.sh, too. Thanks, Kouya Ian Jackson writes: > Kouya Shimura writes ("[Xen-devel] [PATCH] hotplug script: lock directory remains on error"): > > _release_lock should be used instead of release_lock. > > That part is OK. > > > Adding sigerr is extra. > > I'm not sure I follow this. Why is this a good idea ? Why not just > say "exit 1" in the error handler in this script ? > > Ian.