Changeset 5426:5d46ad49d04a
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5360
|
r5426
|
|
| 1312 | 1312 | char *s; |
| 1313 | 1313 | |
| | 1314 | if (msg->fp && fsync(fileno(msg->fp)) < 0) |
| | 1315 | { |
| | 1316 | mutt_perror("Could not flush message to disk"); |
| | 1317 | return -1; |
| | 1318 | } |
| 1314 | 1319 | if (safe_fclose (&msg->fp) != 0) |
| 1315 | 1320 | return -1; |
| … |
… |
|
| 1387 | 1392 | char tmp[16]; |
| 1388 | 1393 | |
| | 1394 | if (msg->fp && fsync(fileno(msg->fp)) < 0) |
| | 1395 | { |
| | 1396 | mutt_perror("Could not flush message to disk"); |
| | 1397 | return -1; |
| | 1398 | } |
| 1389 | 1399 | if (safe_fclose (&msg->fp) != 0) |
| 1390 | 1400 | return -1; |