IOQ3 commit 1937

This commit is contained in:
Richard Allen 2011-05-18 02:11:56 +00:00
parent 0853626386
commit 5a1af7ef89
2 changed files with 7 additions and 0 deletions

View file

@ -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;
}

View file

@ -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 )