Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147618431
D25478.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
494 B
Referenced Files
None
Subscribers
None
D25478.diff
View Options
Index: head/usr.sbin/fifolog/lib/fifolog_write_poll.c
===================================================================
--- head/usr.sbin/fifolog/lib/fifolog_write_poll.c
+++ head/usr.sbin/fifolog/lib/fifolog_write_poll.c
@@ -239,6 +239,14 @@
*/
f->seq++;
f->recno++;
+
+ /*
+ * Ensure we wrap recno once we hit the file size (in records.)
+ */
+ if (f->recno >= f->ff->logsize)
+ /* recno 0 is header; skip */
+ f->recno = 1;
+
f->flag = 0;
memset(f->obuf, 0, f->obufsize);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 13, 9:22 AM (1 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29617206
Default Alt Text
D25478.diff (494 B)
Attached To
Mode
D25478: [fifolog] Wrap to the beginning of the file once the end of the file is reached
Attached
Detach File
Event Timeline
Log In to Comment