"Szabolcs Nagy" <nszabolcs_AT_gmail.com>
writes:
>> while true
>> do
>> cat $DWM_PIPE
>> done | /usr/bin/dwm
>
> it looks like a busy-loop
> shouldn't there be a sleep in there?
Though on the first look it seems to be one, in fact it isn't.
$DWM_PIPE is a fifo, so the loop idles most of the time unless there is
written something new to $DWM_PIPE. (Should have named $DWM_PIPE
$DWM_FIFO or so, I guess.)
Regards,
olli
-- http://www.sopos.org/olli/ GnuPG-Key: gpg --recv-keys 0x9A00D827 GnuPG-Fingerprint: F27A BA8C 1CFB B905 65A8 2544 0F07 B675 9A00 D827 NP: SS Decontrol - Police BeatReceived on Wed Mar 21 2007 - 17:50:36 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:39:51 UTC