Commit 065a0bc
committed
Add error checking for shm_unlink calls in shm_posix.cpp
Changes:
1. Added error checking for all three shm_unlink() calls
2. Save return value in temporary variable 'unlink_ret'
3. Log error with errno if shm_unlink() returns -1
4. Fixed remove(char const * name) to prepend '/' to name for consistency
with acquire() function (POSIX requires /name format)
This will help diagnose the second-run test failure on FreeBSD by showing
if shm_unlink is failing and why.1 parent 37f16ce commit 065a0bc
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
| |||
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
193 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
| |||
199 | 205 | | |
200 | 206 | | |
201 | 207 | | |
202 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
203 | 214 | | |
204 | 215 | | |
205 | 216 | | |
| |||
0 commit comments