Subject: kern/24718: rtc_offset changes do not fix up process start time
To: None <gnats-bugs@gnats.NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 03/09/2004 15:41:31
>Number: 24718
>Category: kern
>Synopsis: rtc_offset changes do not fix up process start time
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 09 14:42:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Martin Husemann
>Release: NetBSD 1.6ZK
>Organization:
>Environment:
System: NetBSD night-porter.duskware.de 1.6ZK NetBSD 1.6ZK (PORTER) #1: Sun Mar 7 00:59:25 CET 2004 martin@night-porter.duskware.de:/usr/src/sys/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:
When sysctl changes kern.rtc_offset it tries to cover up it's traces,
but not good enough: the "start" time of already running processes is not
fixed up.
(yeah, Perry said the current handling is insufficient ...)
>How-To-Repeat:
On a machine with /etc/localtime != UTC and rtclocaltime=YES in /etc/rc.conf
check the output of "ps -axuk start" - and wonder why kernel threads are
sorted "wrong".
>Fix:
On write to rtc_offset, walk the process list and adjust the start field?
>Release-Note:
>Audit-Trail:
>Unformatted: