src/daemon/common.c: Change swrite() to return errno if possible.