Changeset 5426:5d46ad49d04a

Show
Ignore:
Timestamp:
2008-06-26 00:18:02 (5 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

fsync maildir/mh messages on commit. Closes #2962.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mh.c

    r5360 r5426  
    13121312  char *s; 
    13131313 
     1314  if (msg->fp && fsync(fileno(msg->fp)) < 0) 
     1315  { 
     1316    mutt_perror("Could not flush message to disk"); 
     1317    return -1; 
     1318  } 
    13141319  if (safe_fclose (&msg->fp) != 0) 
    13151320    return -1; 
     
    13871392  char tmp[16]; 
    13881393 
     1394  if (msg->fp && fsync(fileno(msg->fp)) < 0) 
     1395  { 
     1396    mutt_perror("Could not flush message to disk"); 
     1397    return -1; 
     1398  } 
    13891399  if (safe_fclose (&msg->fp) != 0) 
    13901400    return -1;