libathemecore: socket(2) can return 0, errors are negative.