pcp
[Top] [All Lists]

Re: something not right in pmmgr land?

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: something not right in pmmgr land?
From: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Date: Mon, 7 Apr 2014 10:09:49 -0400
Cc: pcp developers <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <003501cf5252$a3c0ef40$eb42cdc0$@internode.on.net>
References: <533DEBB9.7010608@xxxxxxxxxxxxxxxx> <y0m1txdamep.fsf@xxxxxxxx> <5341DA0F.6000202@xxxxxxxxxxxxxxxx> <20140407000415.GA13940@xxxxxxxxxx> <003501cf5252$a3c0ef40$eb42cdc0$@internode.on.net>
User-agent: Mutt/1.4.2.2i
Hi -

Ken's keen eye pointed at a difference in behavior between my
workstation (Fedora* etc.) and his: the presence of "sh -c FOO"
processes.  It seems to have come down to a matter of bash
configuration, of all things:


>From git://git.savannah.gnu.org/bash.git 

config-top.h:

35 /* Define ONESHOT if you want sh -c 'command' to avoid forking to execute
36    `command' whenever possible.  This is a big efficiency improvement. */
37 #define ONESHOT
38 


A quickie pmmgr patch (prefixing sh -c "exec FOO") should force this
behavior on non-bash shells too.


- FChE

<Prev in Thread] Current Thread [Next in Thread>