Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 4b8cb8e

Browse files
committed
Merge in 'release/2.0.0' changes
2 parents a1561b7 + 8e7216b commit 4b8cb8e

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

UpdatePublishedVersions.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ param(
1616
# A pattern matching all packages in the set that the versions repository should be set to.
1717
[Parameter(Mandatory=$true)][string]$nupkgPath)
1818

19-
& "$PSScriptRoot\Tools\dotnetcli\dotnet.exe" Tools\msbuild.exe tests\build.proj /t:UpdatePublishedVersions `
19+
& "$PSScriptRoot\Tools\dotnetcli\dotnet.exe" Tools\msbuild.dll tests\build.proj /t:UpdatePublishedVersions `
2020
/p:GitHubUser="$gitHubUser" `
2121
/p:GitHubEmail="$gitHubEmail" `
2222
/p:GitHubAuthToken="$gitHubAuthToken" `

src/pal/src/file/file.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ CorUnix::InternalCreateFile(
453453
int filed = -1;
454454
int create_flags = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
455455
int open_flags = 0;
456-
int lock_mode = LOCK_SH;
457456

458457
// track whether we've created the file with the intended name,
459458
// so that it can be removed on failure exit
@@ -664,29 +663,6 @@ CorUnix::InternalCreateFile(
664663
dwCreationDisposition == OPEN_ALWAYS) &&
665664
!fFileExists;
666665

667-
668-
// While the lock manager is able to provide support for share modes within an instance of
669-
// the PAL, other PALs will ignore these locks. In order to support a basic level of cross
670-
// process locking, we'll use advisory locks. FILE_SHARE_NONE implies a exclusive lock on the
671-
// file and all other modes use a shared lock. While this is not as granular as Windows,
672-
// you can atleast implement a lock file using this.
673-
lock_mode = (dwShareMode == 0 /* FILE_SHARE_NONE */) ? LOCK_EX : LOCK_SH;
674-
675-
if(flock(filed, lock_mode | LOCK_NB) != 0)
676-
{
677-
TRACE("flock() failed; error is %s (%d)\n", strerror(errno), errno);
678-
if (errno == EWOULDBLOCK)
679-
{
680-
palError = ERROR_SHARING_VIOLATION;
681-
}
682-
else
683-
{
684-
palError = FILEGetLastErrorFromErrno();
685-
}
686-
687-
goto done;
688-
}
689-
690666
#ifndef O_DIRECT
691667
if ( dwFlagsAndAttributes & FILE_FLAG_NO_BUFFERING )
692668
{

0 commit comments

Comments
 (0)