Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!ukma!rutgers!att!lzaz!bds From: bds@lzaz.ATT.COM (B.SZABLAK) Newsgroups: comp.os.minix Subject: Bug fix for ptrace implementation. Keywords: ATARI ST, mm, cdiff file Message-ID: <373@lzaz.ATT.COM> Date: 17 Jan 89 13:18:54 GMT Organization: AT&T ISL Lincroft NJ USA Lines: 18 Its come to my attention that my implementation of ptrace has a small bug that complicates the debugging of programs that fork other processes. The following context diff fixes this. Apply it to mm/forkexit.c using patch. Thanks to Kai-Uwe Bloem whose bitnet address is inaccessible to me for pointing this out. *** oforkexit.c Thu Jan 16 18:16:19 1989 --- forkexit.c Thu Jan 16 18:18:28 1989 *************** *** 83,88 **** --- 83,89 ---- while (i--) *dptr++ = *sptr++;/* copy from parent slot to child's */ rmc->mp_parent = who; /* record child's parent */ + rmc->mp_flags &= ~TRACED; /* child does not inherit trace status */ #ifndef ATARI_ST rmc->mp_seg[T].mem_phys = child_base; rmc->mp_seg[D].mem_phys = child_base + rmc->mp_seg[T].mem_len;