mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-10 15:21:44 +00:00
IOQ3 commit 1937
This commit is contained in:
parent
0853626386
commit
5a1af7ef89
2 changed files with 7 additions and 0 deletions
|
@ -943,6 +943,8 @@ fileHandle_t FS_FCreateOpenPipeFile( const char *filename ) {
|
|||
}
|
||||
else
|
||||
{
|
||||
Com_Printf( S_COLOR_YELLOW "WARNING: Could not create new com_pipefile at %s. "
|
||||
"com_pipefile will not be used.\n", ospath );
|
||||
f = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -257,6 +257,11 @@ FILE *Sys_Mkfifo( const char *ospath )
|
|||
FILE *fifo;
|
||||
int result;
|
||||
int fn;
|
||||
struct stat buf;
|
||||
|
||||
// if file already exists AND is a pipefile, remove it
|
||||
if( !stat( ospath, &buf ) && S_ISFIFO( buf.st_mode ) )
|
||||
FS_Remove( ospath );
|
||||
|
||||
result = mkfifo( ospath, 0600 );
|
||||
if( result != 0 )
|
||||
|
|
Loading…
Reference in a new issue