delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/05/18:02:48

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: C exe redirection blank file
Date: Fri, 05 May 2006 17:02:02 -0500
Lines: 53
Message-ID: <e3gi0p$23s$1@sea.gmane.org>
References: <4e225417b8AndyBurgess AT argonet DOT co DOT uk> <e3g084$921$1 AT sea DOT gmane DOT org> <4e2269bfcfAndy AT jet-net DOT co DOT uk>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
In-Reply-To: <4e2269bfcfAndy@jet-net.co.uk>
OpenPGP: url=hkp://random.sks.keyserver.penguin.de
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Andy AT Jet-Net wrote:

> Thanks for your reply,
>=20
>>> * Suddenly I could no longer redirect the output of this program, and t=
he two
>>> files it created were now blank.
>> [snip]
>=20
>> Did you forget to close the files=20
> Thanks for that, that's fixed the writing of the files! Dunno why that's
> happened only on this machine.=20

The normal exit does flush and close all open file descriptors, so what you=
 are
seeing is odd.

Now, the normal exit is part of the "run time" (crt0 or a similar name, that
calls main and cleans up after) and that part is statically linked so, unle=
ss it
depends on functionality on a Windows dll, it should not vary between machi=
nes.

I don't know if those basic libraries get Windows patches (updates in
Microsoft-talk)... could be worth trying.

> Is there a limit to the number of files on XP - like the old config.sys
> option files=3D99?

I don't know.

>> and/or are exiting the program in a non-standard way?
> I don't think so. With issues - can't open port - I exit with a "return -=
1"
> otherwise I just fall out of the bottom of the main().=20
>=20
> chkdsk fixed errors this time, but I still have the "problems with the fi=
le
> system" error (maybe a red herring), and ...
>=20
> I still can't redirect output. Any advice on this v gratefully received.

That's a weird one, I have no idea what is going on (I was thinking about
anti-virus or similar software that prevent creating files, but it doesn't =
look
quite like that).
--=20
Ren=E9 Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019