2 #include <sys/select.h>
9 char buffer[1024*1024*2];
16 /* Start with a nice simple select */
17 select(3, &rds, &rds, &rds, NULL);
18 /* Now the crash case that trinity found, negative nfds
19 * but with a pointer to a large chunk of valid memory.
21 select(-1, (fd_set *)buffer, NULL, NULL, NULL);