Path: utzoo!utgpu!watmath!clyde!att!pacbell!ames!ncar!tank!mimsy!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: lint question Message-ID: <9332@smoke.BRL.MIL> Date: 11 Jan 89 07:57:07 GMT References: <491@babbage.acc.virginia.edu> <9322@smoke.BRL.MIL> <2679@ficc.uu.net> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <2679@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: > if(fprintf(stderr, "...: operation failed\n") == FAIL) { > if(!(fp = fopen("/dev/tty", "w"))) { > if(!(fp = fopen("/dev/console", "w"))) { Not really, because if somebody has redirected stderr it is probably for a good reason, and such policy should not be overridden by an application that doesn't know what's going on outside. Blathering on the console is particularly obnoxious in most cases.