Re: Running bash using su -c causes 100% cpu usage on one core
From:
Chet Ramey
Subject:
Re: Running bash using su -c causes 100% cpu usage on one core
Date:
Mon, 4 Jan 2016 07:53:03 -0500
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
On 1/3/16 6:27 PM, Marcus Wichelmann wrote:
> Hi,
>
> Im not sure if this is a regression because I already found another bug
> report with the same symptoms from 2007, but when adding this line to the
> /etc/rc.local the cpu usage of one of the two cores raises to 100%:
>
> su cubie -c "(cd /home/cubie/Haussteuerung/Haussteuerung; ./run.sh)" &
There's not enough information here to say anything for sure, but it might
be that run.sh does not behave well when called without a controlling
terminal.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/