- Notifications
You must be signed in to change notification settings - Fork28
Commit944a026
committed
Fix pg_file_write() error handling.
Detect fclose() failures; given "ln -s /dev/full $PGDATA/devfull","pg_file_write('devfull', 'x', true)" now fails as it should. Don'tleak a stream when fwrite() fails. Remove a born-ineffective test thataimed to skip zero-length writes. Back-patch to 9.2 (all supportedversions).1 parent2fd26b2 commit944a026
1 file changed
+7
-12
lines changedLines changed: 7 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
| 139 | + | |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
| 142 | + | |
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
160 | 155 |
| |
161 | 156 |
| |
162 | 157 |
| |
|
0 commit comments
Comments
(0)