coreserver: Handle socket EINTR

Signed-off-by: Michael Buesch <m@bues.ch>