diff options
Diffstat (limited to 'src/pal/src/synchmgr/synchmanager.cpp')
-rw-r--r-- | src/pal/src/synchmgr/synchmanager.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pal/src/synchmgr/synchmanager.cpp b/src/pal/src/synchmgr/synchmanager.cpp index 1a55f4f3c4..0adbb3d72e 100644 --- a/src/pal/src/synchmgr/synchmanager.cpp +++ b/src/pal/src/synchmgr/synchmanager.cpp @@ -2899,7 +2899,7 @@ namespace CorUnix _ASSERT_MSG(fRet, "Failed to retrieve process pipe's name!\n"); - iProcessPipe = InternalOpen(pthrCurrent, strPipeFilename, O_WRONLY); + iProcessPipe = InternalOpen(strPipeFilename, O_WRONLY); if (-1 == iProcessPipe) { ERROR("Unable to open a process pipe to wake up a remote thread " @@ -3778,7 +3778,7 @@ namespace CorUnix { /* Some how no one deleted the pipe, perhaps it was left behind from a crash?? Delete the pipe and try again. */ - if ( -1 == InternalUnlink( pthrCurrent, szPipeFilename ) ) + if ( -1 == unlink( szPipeFilename ) ) { ERROR( "Unable to delete the process pipe that was left behind.\n" ); fRet = false; @@ -3802,7 +3802,7 @@ namespace CorUnix } } - iPipeRd = InternalOpen(pthrCurrent, szPipeFilename, O_RDONLY | O_NONBLOCK); + iPipeRd = InternalOpen(szPipeFilename, O_RDONLY | O_NONBLOCK); if (iPipeRd == -1) { ERROR("Unable to open the process pipe for read\n"); @@ -3810,7 +3810,7 @@ namespace CorUnix goto CPP_exit; } - iPipeWr = InternalOpen(pthrCurrent, szPipeFilename, O_WRONLY | O_NONBLOCK); + iPipeWr = InternalOpen(szPipeFilename, O_WRONLY | O_NONBLOCK); if (iPipeWr == -1) { ERROR("Unable to open the process pipe for write\n"); @@ -3858,7 +3858,7 @@ namespace CorUnix // Failed if (0 != szPipeFilename[0]) { - InternalUnlink(pthrCurrent, szPipeFilename); + unlink(szPipeFilename); } if (-1 != iPipeRd) { @@ -3901,13 +3901,13 @@ namespace CorUnix PAL_ERROR CPalSynchronizationManager::ShutdownProcessPipe( CPalThread *pthrCurrent) { - PAL_ERROR palErr = NO_ERROR; + PAL_ERROR palErr = NO_ERROR; #ifndef CORECLR char szPipeFilename[MAX_PATH]; if(GetProcessPipeName(szPipeFilename, MAX_PATH, gPID)) { - if (InternalUnlink(pthrCurrent, szPipeFilename) == -1) + if (unlink(szPipeFilename) == -1) { ERROR("Unable to unlink the pipe file name errno=%d (%s)\n", errno, strerror(errno)); |