tests: put `static` keyword at beginning of variable declaration
[lttng-tools.git] / tests / regression / kernel / select_poll_epoll.c
index 08e7fce0d898df547da42e371dc694f90bea4141..e667e17665dbde4d01aa1c246b74ddaa3893e97f 100644 (file)
@@ -31,7 +31,7 @@
 #define MSEC_PER_NSEC (MSEC_PER_USEC * 1000)
 
 static int timeout; /* seconds, -1 to disable */
-volatile static int stop_thread;
+static volatile int stop_thread;
 static int wait_fd;
 
 struct ppoll_thread_data {
@@ -732,6 +732,9 @@ void epoll_pwait_concurrent_munmap(void)
        struct epoll_event *epoll_event;
        pthread_t writer;
 
+       for (i = 0; i < MAX_FDS; i++) {
+               fds[i] = -1;
+       }
        epollfd = epoll_create(MAX_FDS);
        if (epollfd < 0) {
                perror("[eppoll] create");
This page took 0.02499 seconds and 4 git commands to generate.