| 208 | } |
| 209 | |
| 210 | static bool hold_obstruction(Child *child) { |
| 211 | if (mkdir(child->profile, 0700) != 0) |
| 212 | return false; |
| 213 | child->owns_obstruction = true; |
| 214 | if (lstat(child->profile, &child->obstruction) != 0 || !S_ISDIR(child->obstruction.st_mode)) |
| 215 | return false; |
| 216 | return note(child, "obstacle_held", -1, 1); |
| 217 | } |
| 218 | |
| 219 | static bool remove_obstruction(Child *child) { |
| 220 | struct stat now; |
no test coverage detected