Handle EINTR on the spot instead of restarting the entire loop
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 8 Jun 2011 08:00:40 +0000 (11:00 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 8 Jun 2011 08:00:40 +0000 (11:00 +0300)
commit5de50d2e74dff1622eb426a0982b213abf46c883
treec73130f88875b9389bec5b29854b80882f94b023
parent2305f5cd58bb92f2fe6e1cabc1b1ef7e22f05dc8
Handle EINTR on the spot instead of restarting the entire loop
- The previous code was violating the "golden rules of select()" by
  possibly skipping processing of fd's that were included in the
  select() set. Also restarting the entire loop should not be
  necessary in case of EINTR select(), our conditions do not change
  in that situation.
build/rpmfc.c