This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-25
lines changed Expand file tree Collapse file tree 2 files changed +1
-25
lines changed Original file line number Diff line number Diff line change 16
16
# A pattern matching all packages in the set that the versions repository should be set to.
17
17
[Parameter (Mandatory = $true )][string ]$nupkgPath )
18
18
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 `
20
20
/ p:GitHubUser= " $gitHubUser " `
21
21
/ p:GitHubEmail= " $gitHubEmail " `
22
22
/ p:GitHubAuthToken= " $gitHubAuthToken " `
Original file line number Diff line number Diff line change @@ -453,7 +453,6 @@ CorUnix::InternalCreateFile(
453
453
int filed = -1 ;
454
454
int create_flags = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
455
455
int open_flags = 0 ;
456
- int lock_mode = LOCK_SH;
457
456
458
457
// track whether we've created the file with the intended name,
459
458
// so that it can be removed on failure exit
@@ -664,29 +663,6 @@ CorUnix::InternalCreateFile(
664
663
dwCreationDisposition == OPEN_ALWAYS) &&
665
664
!fFileExists ;
666
665
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
-
690
666
#ifndef O_DIRECT
691
667
if ( dwFlagsAndAttributes & FILE_FLAG_NO_BUFFERING )
692
668
{
You can’t perform that action at this time.
0 commit comments