use fgets(), not gets()
[unix-history] / usr / src / usr.sbin / update / update.8
CommitLineData
6f65d36d 1.\" @(#)update.8 6.1 (Berkeley) %G%
1f137805 2.\"
6f65d36d 3.TH UPDATE 8 ""
1f137805
KM
4.AT 3
5.SH NAME
6update \- periodically update the super block
7.SH SYNOPSIS
8.B /etc/update
9.SH DESCRIPTION
10.I Update
11is a program that executes
12the
13.IR sync (2)
14primitive every 30 seconds.
15This insures that the file system
16is fairly up to date in case of a crash.
17This command should not be executed directly,
18but should be executed out of the
19initialization shell command file.
20.SH "SEE ALSO"
b2319459 21sync(2), sync(8), init(8), rc(8)
1f137805
KM
22.SH BUGS
23With
24.I update
25running,
26if the CPU is
27halted just as
28the
29.I sync
30is executed,
31a file system can be damaged.
32This is partially due to DEC hardware that
33writes zeros when NPR requests fail.
34A fix would be to have
b2319459 35.IR sync (8)
1f137805
KM
36temporarily increment the system time by at
37least 30 seconds to trigger the execution of
38.I update.
39This would give 30 seconds grace to halt the CPU.