forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8528e3d
committed
Fix failure to check for open() or fsync() failures.
While it seems OK to not be concerned about fsync() failure for apre-existing signal file, it's not OK to not even check for open()failure. This at least causes complaints from static analyzers,and I think on some platforms passing -1 to fsync() or close() mighttrigger assertion-type failures. Also add (void) casts to make clearthat we're ignoring fsync's result intentionally.Oversights in commit2dedf4d, noted by Coverity.1 parente9fcfed commit8528e3d
1 file changed
+12
-5
lines changedLines changed: 12 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5327 | 5327 |
| |
5328 | 5328 |
| |
5329 | 5329 |
| |
5330 |
| - | |
| 5330 | + | |
| 5331 | + | |
5331 | 5332 |
| |
5332 | 5333 |
| |
5333 | 5334 |
| |
| |||
5338 | 5339 |
| |
5339 | 5340 |
| |
5340 | 5341 |
| |
5341 |
| - | |
5342 |
| - | |
| 5342 | + | |
| 5343 | + | |
| 5344 | + | |
| 5345 | + | |
| 5346 | + | |
5343 | 5347 |
| |
5344 | 5348 |
| |
5345 | 5349 |
| |
| |||
5348 | 5352 |
| |
5349 | 5353 |
| |
5350 | 5354 |
| |
5351 |
| - | |
5352 |
| - | |
| 5355 | + | |
| 5356 | + | |
| 5357 | + | |
| 5358 | + | |
| 5359 | + | |
5353 | 5360 |
| |
5354 | 5361 |
| |
5355 | 5362 |
| |
|
0 commit comments
Comments
(0)