[comp.bugs.4bsd] exect

chris@mimsy.UUCP (Chris Torek) (01/18/89)

Index: bin/adb/adb.vax/runpcs.c 4.3BSD-tahoe Fix

Description:
	The exect() `system call', which adb uses to start binaries
	on the VAX, is unnecessary and leads to incorrect behaviour
	if the exec() fails.

Repeat-by:
	% adb no-such-file
	cannot open `no-such-file'
	:s
	stopped at     <addr>:    jmp     <other-addr>

Fix:
	After ptrace(PT_TRACE_ME), a simple execve() suffices.  Change
	the one occurrence in adb, and any others you find anywhere
	else.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris