And, in this case, it sounds like a thread would do exactly what you want, but without the oddities of fork().