Bug#682969: timeout 20 /usr/sbin/ntpd -g -q gives wrong return code

2012-08-01 Thread Goswin von Brederlow
On Fri, Jul 27, 2012 at 07:19:35PM +0100, Pádraig Brady wrote: On 07/27/2012 05:56 PM, Jim Meyering wrote: Goswin von Brederlow wrote: Package: coreutils Version: 8.13-3.2 Severity: normal File: /usr/bin/timeout I'm trying to set the time during boot. Unfortunately ntpd hangs

Bug#682969: timeout 20 /usr/sbin/ntpd -g -q gives wrong return code

2012-07-27 Thread Goswin von Brederlow
Package: coreutils Version: 8.13-3.2 Severity: normal File: /usr/bin/timeout I'm trying to set the time during boot. Unfortunately ntpd hangs forever if the timeserver is unavailable. So I added a timeout to it so the system still continues to boot without the correct time. But I would like to

Bug#682969: timeout 20 /usr/sbin/ntpd -g -q gives wrong return code

2012-07-27 Thread Jim Meyering
Goswin von Brederlow wrote: Package: coreutils Version: 8.13-3.2 Severity: normal File: /usr/bin/timeout I'm trying to set the time during boot. Unfortunately ntpd hangs forever if the timeserver is unavailable. So I added a timeout to it so the system still continues to boot without the

Bug#682969: timeout 20 /usr/sbin/ntpd -g -q gives wrong return code

2012-07-27 Thread Pádraig Brady
On 07/27/2012 05:56 PM, Jim Meyering wrote: Goswin von Brederlow wrote: Package: coreutils Version: 8.13-3.2 Severity: normal File: /usr/bin/timeout I'm trying to set the time during boot. Unfortunately ntpd hangs forever if the timeserver is unavailable. So I added a timeout to it so the

Bug#682969: timeout 20 /usr/sbin/ntpd -g -q gives wrong return code

2012-07-27 Thread Jim Meyering
Pádraig Brady wrote: On 07/27/2012 05:56 PM, Jim Meyering wrote: ... When I try to trigger such misbehavior, timeout seems to work fine on a system (Fedora 17) with a working timer_settime function: $ timeout 2 date --set=$(LC_ALL=C date -d 10\ sec +@%s); echo $? 0 I.e., when