From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,63125f2416827054,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: fc89c,63125f2416827054,start X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,63125f2416827054,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-04-14 06:48:41 PST Xref: gmd.de comp.unix.osf.osf1:250 comp.unix.programmer:5706 comp.unix.questions:14843 Newsgroups: comp.unix.osf.osf1,comp.unix.programmer,comp.unix.questions Path: gmd.de!ira.uka.de!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!uunet!walter!porthos!iscp.bellcore.com!wws From: wws@iscp.bellcore.com (Wayne Scott) Subject: Having trouble kill()ing processes from C code. Organization: Bellcore Distribution: usa Date: Wed, 14 Apr 93 12:46:28 GMT Message-ID: <1993Apr14.124628.20840@porthos.cc.bellcore.com> Keywords: xterm processes & rlogin sessions on DEC Alpha/OSF1. Sender: netnews@porthos.cc.bellcore.com (USENET System Software) 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 , 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