[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[OT OBSD Programming] kill cu processes
- To: misc@openbsd.org
- Subject: [OT OBSD Programming] kill cu processes
- From: Christian Schäfer <caefer@krachstoff.net>
- Date: Wed, 01 Sep 2004 09:57:41 +0200
- User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)
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