[Pkg-sysvinit-devel] Re: r348 - sysvinit/trunk/debian/initscripts/etc/init.d

Thomas Hood jdthood at yahoo.co.uk
Thu Dec 15 16:59:54 UTC 2005


Petter Reinholdtsen wrote:
>>  		savelog -q -p -c 5 /var/log/dmesg
>>  		dd if=/dev/klog of=/var/log/dmesg &
>> -		dmesg_pid=$!
>>  		sleep 1
>> -		kill $dmesg_pid
>> +		kill $!
> 
> Are you sure sleep always is an internal shell function?  If it is an
> external program, this would fail.

No it wouldn't, because the sleep is finished when 'kill $!' happens
and it doesn't run in the background.  '$1' only evaluates to the pids
of background processes.
-- 
Thomas



More information about the Pkg-sysvinit-devel mailing list