Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!terra!brent From: brent%terra@Sun.COM (Brent Callaghan) Newsgroups: comp.unix.wizards Subject: Re: ptrace in unix tracing non-child processes Message-ID: <49161@sun.uucp> Date: 12 Apr 88 06:29:53 GMT References: <352@tandem.UUCP> <10996@mimsy.UUCP> <10224@tut.cis.ohio-state.edu> Sender: news@sun.uucp Lines: 13 Summary: SunOs has it1 SunOs ptrace() has this facility. You can give it a pid with the PTRACE_ATTACH request and attach to another process. The other process must be one of "yours" i.e. same uid/gid. The process gets a SIGSTOP. A PTRACE_DETACH is used to send the traced process on it's way when you've lost interest. This facility is used by dbx. You can give it a pid in place of a core file name e.g. "dbx fnurg 1022". Made in New Zealand --> Brent Callaghan @ Sun Microsystems uucp: sun!bcallaghan phone: (415) 691 6188