Modify

#558 closed enhancement (duplicate)

Add O_SYNC to open() when writing XML configuration

Reported by: silasdb@… Owned by:
Priority: normal Milestone:
Component: BitlBee Version: devel
Keywords: Cc:
IRC client+version: Client-independent Operating System: NetBSD
OS version/distro:

Description

The XML configuration can get corrupted due to a system crash. Is it worth to pass the O_SYNC flag (or maybe O_DSYNC)?

The attached patch - very simple! - adds the O_SYNC flag to the open(2) call in xml_save(), in storage_xml.c.

Attachments (0)

Change History (1)

comment:1 Changed at 2010-01-30T15:35:46Z by wilmer

Resolution: duplicate
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.