/*
- * Copyright (c) 2010, 2011, 2012, 2013 Nicira, Inc.
+ * Copyright (c) 2010, 2011, 2012, 2013, 2015 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
long long int now;
long long int may_open;
int delay;
- int error;
+ int retval;
int j;
if (max_rate > 0) {
delay = 1000;
}
- error = do_poll(fds, n_fds, delay);
- if (error) {
+ retval = do_poll(fds, n_fds, delay);
+ if (retval < 0) {
ovs_fatal(errno, "poll");
}
}
}
}
+ free(fds);
}
static void
}
while (n_fds > 0) {
- int error;
+ int retval;
- error = do_poll(fds, n_fds, -1);
- if (error) {
+ retval = do_poll(fds, n_fds, -1);
+ if (retval < 0) {
ovs_fatal(errno, "poll");
}