pid_t? Why? That's not a good thing to identify entries in the queue...