Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rtech.ARPA Path: utzoo!utcs!lsuc!pesnta!hplabs!amdahl!rtech!jas From: jas@rtech.ARPA (Jim Shankland) Newsgroups: net.unix-wizards Subject: re: ps problem Message-ID: <129@rtech.ARPA> Date: Mon, 4-Feb-85 17:22:49 EST Article-I.D.: rtech.129 Posted: Mon Feb 4 17:22:49 1985 Date-Received: Thu, 7-Feb-85 08:35:48 EST References: <125@rruxo.UUCP> <1079@amdahl.UUCP> Organization: Relational Technology, Berkeley CA Lines: 16 > ... ps(1) looks at stderr to figure out what the "controlling > terminal" is. > Gordon A. Moffett ...!{ihnp4,hplabs,sun}!amdahl!gam If this is true, it seems like a horrible hack to me. Surely ps could get its notion of the controlling terminal from the proc table entry for the ps process itself (it is, after all, already rooting around in the proc table)? The notion of a controlling terminal is an attribute of a process, and need not have any connection with what files that process has open. Anybody know whether (1) Gordon is wrong; (2) Gordon is right, and I'm right, so ps is just ugly; or (3) I've missed something? Jim Shankland ..!ucbvax!mtxinu!rtech!jas