Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.netfront.net!reversiblemaps.ath.cx!not-for-mail From: Jasen Betts Newsgroups: comp.os.linux.development.apps Subject: Re: How to dup a FILE* Date: 6 Dec 2011 13:28:22 GMT Organization: Dis (not Dat) Organisation Lines: 14 Message-ID: References: NNTP-Posting-Host: 118.90.27.135 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: adenine.netfront.net 1323178289 79915 118.90.27.135 (6 Dec 2011 13:31:29 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Tue, 6 Dec 2011 13:31:29 +0000 (UTC) X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s;a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W;(T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q;8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-18 (Linux) Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.development.apps:296 On 2011-12-06, Josef Moellers wrote: > fflush(stderr); > fclose(stderr); > dup2(oldfd2, fileno(stderr)); /* this may not work, see below */ read the man page for fclose: you can't do anything (useful) with stderr after fclose(stderr). -- ⚂⚃ 100% natural --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---