Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62652 - date(1) causes xorg to freak a little
Summary: date(1) causes xorg to freak a little
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo X packagers
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 13:10 UTC by Andy
Modified: 2004-09-27 14:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2004-09-02 13:10:38 UTC
date(1) produces multiple newlines when it should set date to date whose minutes are (at least) a minute in the future:
tux root # date
Thu Sep  2 21:54:28 CEST 2004
tux root # date -s "Thu Sep  2 21:54:28 CEST 2004"
Thu Sep  2 21:54:28 CEST 2004
tux root # date -s "Thu Sep  2 21:55:28 CEST 2004"
Thu Sep  2 21:55:28 CEST 2004

tux root # 
tux root # 
tux root # 
tux root # date -s "Thu Sep  2 21:55:28 CEST 2004"
Thu Sep  2 21:55:28 CEST 2004
tux root # 
I.e. an additional newline and 3 superfluous prompts appear on the console (as if I typed 3 x Enter key).
Comment 1 Sven Wegener gentoo-dev 2004-09-02 20:59:57 UTC
OK, a small status update. This seems to be a xorg-x11/xfree issue as it only
appears to happen when executed under X. I guess the timeshift into the future
(a shift into the past doesn't cause this) is making X to read the Enter key
several times from a buffer, causing the additional newlines and prompts.
Comment 2 Albert Hopkins (RETIRED) gentoo-dev 2004-09-27 14:06:00 UTC
Many apps are time-sensitive.  Changing the system time can make them behave unpredictably or put them in an undetermined state. If you strace a running X app, you see that it makes many calls to gettimeofday().

Not much can be done about this.