Skip to content

Commit

Permalink
[mclagsyncd] Ignore select event if its return value is error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Minkang-Tsai authored and Minkang-Tsai committed Aug 18, 2023
1 parent b4fcfc9 commit 512a62d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mclagsyncd/mclagsyncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,16 @@ int main(int argc, char **argv)
while (true)
{
Selectable *temps;
int ret;

/* Reading MCLAG messages forever (and calling "readData" to read them) */
s.select(&temps);
ret = s.select(&temps);

if (ret == Select::ERROR)
{
SWSS_LOG_NOTICE("Error: %s!", strerror(errno));
continue;
}

if(temps == (Selectable *)mclag.getStateFdbTable())
{
Expand Down

0 comments on commit 512a62d

Please sign in to comment.