Add a malloc sanity-check to poll.c
check realloc return value
shift "run" function to take a table argument, in prep for setuid arg.