Bug 61479 - [patch] fix for uptimed
Summary: [patch] fix for uptimed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-17 16:40 UTC by Radim Kolar
Modified: 2004-01-20 19:32 UTC (History)
0 users

See Also:


Attachments
file.diff (993 bytes, patch)
2004-01-17 16:40 UTC, Radim Kolar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Radim Kolar 2004-01-17 16:40:16 UTC
When system crashes while uptimed is updating his record file, all entries
in the file are lost. This simple patch writes records into temporary
file and rename it to original. Tested and works.

How-To-Repeat: Press reset button while uptimed is running, if you are lucky, softupdates
sets file length to zero. It happens to me 2 times on linux with 
reiserfs journaling and 3 times 
on freebsd with softupdates.
Comment 1 Clement Laforet freebsd_committer freebsd_triage 2004-01-19 11:03:47 UTC
State Changed
From-To: open->feedback

The patch has been added to uptimed 0.3.1 
http://www.unixcode.org/uptimed/download.html 
Waiting for an uptimed update.
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2004-01-20 19:31:54 UTC
State Changed
From-To: feedback->closed

The port was updated to 0.3.1, which incorporated your fix, thanks.