Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
15 lines
398 B
Swift
15 lines
398 B
Swift
import Darwin
|
|
|
|
public enum UnixSocketPathSafety {
|
|
public static func isSocketMode(_ mode: mode_t) -> Bool {
|
|
(mode & mode_t(S_IFMT)) == mode_t(S_IFSOCK)
|
|
}
|
|
|
|
public static func shouldRejectExistingPathAfterBindFailure(
|
|
bindErrno: Int32,
|
|
existingMode: mode_t?
|
|
) -> Bool {
|
|
bindErrno == EADDRINUSE && existingMode.map { !isSocketMode($0) } == true
|
|
}
|
|
}
|