Date: Tue, 29 Oct 2002 13:29:21 +0200 From: Laurynas Biveinis X-Mailer: The Bat! (v1.61) Personal X-Priority: 3 (Normal) Message-ID: <3391450208.20021029132921@softhome.net> X-Confirm-Reading-To: lauras AT softhome DOT net Disposition-Notification-To: lauras AT softhome DOT net To: Eli Zaretskii CC: djgpp-workers AT delorie DOT com Subject: Re: GCC 3.2 building with 2.04 trouble on W2K (NTVDM crash) In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Oct 2002 11:26:33.0243 (UTC) FILETIME=[08D14EB0:01C27F3E] Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk >> It runs as if getch() (or kbhit(), or scanf(), or system() ...) call >> was a no-op. > So that means the failure doesn't happen when you add the call to `getch'. Uhm, no, failure does happen. It's the call to `getch' which doesn't happen... > What if you replace getch() with a call to `sleep' that sleeps enough > seconds to give you time to look around the directory where the program > tries to create the response file? Yes, `sleep' worked. So when I poke around in temp directory when the program sleeps, I see only that the file (the one which just failed), with non-zero length, and completely unaccessible: Using DJGPP tools: --- sh-2.05b$ ls -l total 3 -rw-r--r-- 1 Administ root 0 Oct 29 13:25 dj210000 -rw-r--r-- 1 Administ root 451 Oct 29 13:25 dj300000 -rw-r--r-- 1 Administ root 1756 Oct 29 13:25 dj410000 sh-2.05b$ touch dj410000 touch: creating `dj410000': Permission denied (EACCES) sh-2.05b$ ls -l dj4100000 ls: dj4100000: No such file or directory (ENOENT) --- Those error messages from ls and touch seem very interesting. And for example CygWin tools report: --- Administrator AT BYVIS c:/devel/djgpp/tmp $ ls -l ls: dj410000: No such file or directory total 1 -rwxrwxrwx 1 Administ None 0 Oct 29 13:27 dj210000 -rwxrwxrwx 1 Administ None 451 Oct 29 13:27 dj300000 Administrator AT BYVIS c:/devel/djgpp/tmp $ touch dj410000 touch: creating `dj410000': Permission denied Administrator AT BYVIS c:/devel/djgpp/tmp $ ls -l dj410000 ls: dj410000: No such file or directory --- Laurynas