From: short <> Date: Tue, 26 Feb 2002 20:54:45 +0000 (+0000) Subject: VM_ThreadLoop select() silently restarted when EINTR X-Git-Tag: uc_works1~34 X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=commitdiff_plain;h=323fea6e99d4c55b2fd72caab909c00b71217906;ds=sidebyside VM_ThreadLoop select() silently restarted when EINTR - needed for non-threading version using SIGIO --- diff --git a/common/data/virtmodem.c b/common/data/virtmodem.c index 664127f..2ff532a 100644 --- a/common/data/virtmodem.c +++ b/common/data/virtmodem.c @@ -139,6 +139,8 @@ static bool VM_ThreadLoop(void) break; case -1: + if (errno==EINTR) + continue; perror("VM_ThreadLoop - select"); return (false);