mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Improved error handling as suggested by skidder.
This commit is contained in:
parent
78aa56b62d
commit
68da33d89d
@ -2317,7 +2317,10 @@ void * API_ROUTINE gds__temp_file(
|
||||
#else
|
||||
if (mktemp(file_name) == (char *)0)
|
||||
return (void *)-1;
|
||||
void *result = (void *)open(file_name, O_RDWR | O_CREAT);
|
||||
void *result;
|
||||
do {
|
||||
result = (void *)open(file_name, O_RDWR | O_EXCL| O_CREAT);
|
||||
} while (result == (void *)-1 && errno == EINTR);
|
||||
#endif
|
||||
if (result == (void *)-1)
|
||||
return result;
|
||||
|
@ -19,7 +19,7 @@
|
||||
*
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
* $Id: sort.cpp,v 1.36 2003-05-14 05:39:59 eku Exp $
|
||||
* $Id: sort.cpp,v 1.37 2003-05-14 12:32:02 eku Exp $
|
||||
*
|
||||
* 2001-09-24 SJL - Temporary fix for large sort file bug
|
||||
*
|
||||
@ -3023,7 +3023,7 @@ static void write_trace(
|
||||
*
|
||||
**************************************/
|
||||
UCHAR file_name[32], data[41], *p;
|
||||
#if defined FREEBSD || defined NETBSD
|
||||
#ifdef HAVE_MKSTEMP
|
||||
int fd;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user