[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT OBSD Programming] kill cu processes



hi all!

in a project I am involved in we connect to a serial device using cu.
we fork() and execvp() the cu programm keeping two pipes. one for 
reading one for writing. this runs very smoothly. ;-)

but on openbsd cu seems to for itself a second time. having two 
processes listed. I guess this is to do asynchronous io, since pthreads 
are implemented in userland on obsd..

this is no problem until we want to exit.
how can our programm, that has done the fork() of cu, kill _both_ cu 
processes. right now the self-forked cu process remains as a zombie. we 
don't want this of course..


any hint?


regards
/christian