Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxb!mhuxr!ulysses!allegra!mit-eddie!godot!harvard!seismo!brl-tgr!tgr!MLY.G.SHADES%MIT-OZ@MIT-MC.ARPA From: MLY.G.SHADES%MIT-OZ@MIT-MC.ARPA Newsgroups: net.lang.c Subject: Test for background process Message-ID: <7984@brl-tgr.ARPA> Date: Mon, 4-Feb-85 03:41:14 EST Article-I.D.: brl-tgr.7984 Posted: Mon Feb 4 03:41:14 1985 Date-Received: Wed, 6-Feb-85 04:47:45 EST Sender: news@brl-tgr.ARPA Organization: Ballistic Research Lab Lines: 7 actually the way to check for i/o redirection is to compare the stdin / stdout filenames to the stderr filename. i forget the function call at the moment (it's been a while) but the great thing about stderr is that it is supposed to stay the same as the initial stdout throughout a prog. shades@mit-oz.arpa