Changeset 1045

Show
Ignore:
Timestamp:
06/09/06 06:16:07 (2 years ago)
Author:
ehabkost
Message:

Handle EINTR on osync_queue_poll()

As we are just polling the device we can return OSYNC_QUEUE_EVENT_NONE
and the caller will check for events again very soon.

This solve the problem of bogus hangup messages being returned sometimes.

Signed-off-by: Eduardo Habkost <ehabkost@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/ipc-branch/opensync/opensync_queue.c

    r1032 r1045  
    797797        int ret = poll(&pfd, 1, queue->type == OSYNC_QUEUE_SENDER ? 0 : 100); 
    798798         
     799        if (ret < 0 && errno == EINTR) 
     800                return OSYNC_QUEUE_EVENT_NONE; 
     801 
    799802        if (ret == 0) 
    800803                return OSYNC_QUEUE_EVENT_NONE;