Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: wws@iscp.bellcore.com (Wayne Scott)
Subject: Having trouble kill()ing processes from C code.
Date: Wed, 14 Apr 93 12:46:28 GMT	[thread overview]
Message-ID: <1993Apr14.124628.20840@porthos.cc.bellcore.com> (raw)


Hi Folks:

	I have an X/Motif application from which I allow users to create xterm
windows to access various machines on the LAN.  I do it via fork()/execvp(),
keeping track of the PIDs so I can terminate them when the application is shut
down.  I can NOT terminate the xterm PIDs with kill(pid, SIGTERM); but I CAN
terminate them with kill(pid, SIGKILL).  However, when an rlogin is done from
the xterm, the rlogin is still active AFTER the xterm has been killed.
When I logout of the xterm windows with <ctrl-d>, the xterm AND rlogin go away.
That's EXACTLY what I want, but can't get it to happen from C code.
I noticed that the xterm processes have "root" as the USER.  I don't know if
that's a problem or not.  kill(pid, SIGTERM) worked fine on AIX and on OSF/1
on a DECstation 5000 (if I remember correctly). 
At this point I don't know what the real problem or solution is.
All helpful suggestions are welcome.

Thank you,
Wayne


             reply	other threads:[~1993-04-14 12:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-04-14 12:46 Wayne Scott [this message]
1993-04-16 22:55 ` Having trouble kill()ing processes from C code Michael Joosten
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox