Use different fds for pthreads