Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!bbn!rochester!ur-tut!ur-valhalla!micropen!dave
From: dave@micropen (David F. Carlson)
Newsgroups: comp.unix.microport
Subject: bugs in SV/386
Keywords: close on exec, sdb(1)
Message-ID: <486@micropen>
Date: 12 May 88 14:19:11 GMT
Organization: Micropen Dirent Writing Systems, Pittsford, NY
Lines: 19


Sdb(1) introduces an unnecessary difference to programs forked under it
and the programs that are in turn forked.  The problem is partially 
related to CLOSE_ON_EXEC option of fcntl(2) not working under SV/386.
(Close on exed bug has been reported to Microport since Jan 88.  The
bug goes all the way back to Interactive port, I suspect.)

Programs run under sdb(1) have the capability of having opened *source*
files that sdb has opened when it fork/execs the traced process.  Files
are also needlessly open in all subsequent children, etc.

Fixes are obviously to fix the close on exec functionality or to close
all source files within sdb for the r(un) command.

-- 
David F. Carlson, Micropen, Inc.
...!{ames|harvard|rutgers|topaz|...}!rochester!ur-valhalla!micropen!dave

"The faster I go, the behinder I get." --Lewis Carroll