bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory leak in wait


From: Jean Delvare
Subject: Re: Memory leak in wait
Date: Mon, 2 Mar 2015 08:33:40 +0100

On Sat, 28 Feb 2015 11:29:14 +0100, Jean Delvare wrote:
> I think we will stay away from background sleep and wait for now, and
> instead use:
> 
>       read -t 1 -N 0
> 
> This was suggested by an lm-sensors user and as far as I can tell it
> fits the bill with no downside.

For the record: it doesn't actually work. When the daemon script is run
by systemd, there is no stdin to read from and the read command above
returns immediately with a failure.

Which brings another question: is there any plan to implement sleep as
a bash builtin? This is the last external command in several of my
scripts, it doesn't seem particularly difficult to implement, and that
would solve the problem at hand.

Thanks,
-- 
Jean Delvare
SUSE L3 Support



reply via email to

[Prev in Thread] Current Thread [Next in Thread]