From owner-freebsd-hackers Sun Jan 21 17:16:27 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA23175 for hackers-outgoing; Sun, 21 Jan 1996 17:16:27 -0800 (PST) Received: from ccslinux.dlsu.edu.ph (pcua@linux1.dlsu.edu.ph [165.220.8.15]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA23164 for ; Sun, 21 Jan 1996 17:16:13 -0800 (PST) Received: (from pcua@localhost) by ccslinux.dlsu.edu.ph (8.6.11/8.6.9) id JAA05132; Mon, 22 Jan 1996 09:19:59 +0800 Date: Mon, 22 Jan 1996 09:19:59 +0800 (GMT+0800) From: John Patrick Cua To: hackers@freebsd.org Subject: exec Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk hello! i have a problem regarding a program that i am testing out. how do i replace the code of a stopped(by SIGSTOP) process externally so that once i signal it to continue it will be executing my replaced code? i have looked at two options. option 1: find a way to insert an "execve" line in the stack or to where the instruction pointer is pointing. option 2: create an execve system call where I can specify which process I can exec. may i have your inputs, suggestions? hoping to hear from you guys. thanks. Patrick Cua De La Salle University