Trying to start multiple containers concurrently may cause
lxc_monitor_read_timeout to fail as select call could be
interrupted by a signal, handle it.
Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
goto out_close;
curtime = tv.tv_sec;
}
- if (lxc_monitor_read_timeout(fd, &msg, timeout) < 0)
- goto out_close;
+ if (lxc_monitor_read_timeout(fd, &msg, timeout) < 0) {
+ /* try again if select interrupted by signal */
+ if (errno != EINTR)
+ goto out_close;
+ }
if (timeout != -1) {
retval = gettimeofday(&tv, NULL);