summaryrefslogtreecommitdiff
path: root/src/ivyloop.c
diff options
context:
space:
mode:
authorfcolin2006-05-11 16:13:07 +0000
committerfcolin2006-05-11 16:13:07 +0000
commit3969b742c5217ac5c18ca6cb0bcaabb02c92f2e3 (patch)
tree1ce1181ee0259868fb828a41d4b3df8125ce4649 /src/ivyloop.c
parent093ebcd2ef5341a346c3d9cfcf4865007584b1ee (diff)
downloadivy-c-3969b742c5217ac5c18ca6cb0bcaabb02c92f2e3.zip
ivy-c-3969b742c5217ac5c18ca6cb0bcaabb02c92f2e3.tar.gz
ivy-c-3969b742c5217ac5c18ca6cb0bcaabb02c92f2e3.tar.bz2
ivy-c-3969b742c5217ac5c18ca6cb0bcaabb02c92f2e3.tar.xz
rendu compatible avec la version 3.7 a un suel parametre sur la mainloop
Diffstat (limited to 'src/ivyloop.c')
-rw-r--r--src/ivyloop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ivyloop.c b/src/ivyloop.c
index 46f8fba..a407fae 100644
--- a/src/ivyloop.c
+++ b/src/ivyloop.c
@@ -171,7 +171,8 @@ void IvyMainLoop(void(*BeforeSelect)(void),void(*AfterSelect)(void))
rdset = open_fds;
exset = open_fds;
ready = select(64, &rdset, 0, &exset, TimerGetSmallestTimeout());
- if (AfterSelect) (*AfterSelect)();
+ /* for compatibility with older version we test also the first parameter */
+ if (BeforeSelect && AfterSelect) (*AfterSelect)();
if (ready < 0 && (errno != EINTR)) {
fprintf (stderr, "select error %d\n",errno);