* Crash recovery for com_pipeFile (Lakitu7)
This commit is contained in:
1 parent
16b99e354b
commit
52ead6fa36
2 files changed
+10
-3
No files matched your search
+8
-3
@@ -254,9 +254,14 @@ Sys_Mkfifo
|
||||
*/
|
||||
FILE *Sys_Mkfifo( const char *ospath )
|
||||
{
|
||||
FILE *fifo;
|
||||
int result;
|
||||
int fn;
|
||||
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 )
|
||||
|
||||
Reference in new issue
Block a user