void setup_fds(void) { /* If we have victim files, don't worry about sockets. */ if (victim_path == NULL) open_sockets(); open_pipes(); open_perf_fds(); open_epoll_fds(); open_eventfd_fds(); if (no_files == FALSE) { generate_filelist(); if (files_in_index == 0) /* Something bad happened. Crappy -V maybe? */ return; // FIXME: We should log something here probably. open_files(); } }
unsigned int setup_fds(void) { int ret = TRUE; /* If we have victim files, don't worry about sockets. */ if (victim_path == NULL) { ret = open_sockets(); if (ret == FALSE) return FALSE; } open_pipes(); open_perf_fds(); open_epoll_fds(); open_eventfd_fds(); if (no_files == FALSE) ret = open_files(); return ret; }