Questions tagged [lockfile]

106 questions
2
votes
1 answer

procmail lockfile utility and NFS

Has anyone used the lockfile utility that ships with procmail in conjunction with NFS mounted directories? The lockfile man page states that "Lockfile is NFS-resistant and eight-bit clean."
Rob Wells
  • 36,220
  • 13
  • 81
  • 146
2
votes
1 answer

Why .Net code version hangs, but C++ not?

Why does the same code in .Net (C#) hangs, but in C++ it isn't? The really problem is in System.IO.FileStream, but I reduced it down to CreateFile, nevertheless it still hangs in .Net (while being almost 100% analogue to C++ code): using…
frtnum
  • 177
  • 14
2
votes
1 answer

fcntl F_GETLK always return true

i'm trying to make a single instance daemon using a lock file but fcntl() doesn't seem to work as expected... int creat_lock_file (char * pid_fn) { struct flock pid_lck = {F_WRLCK, SEEK_SET, 0, 0, 0 }; /* Open/Create pid file */ …
1
vote
1 answer

How to stock PID of lockfile command in Linux

I am using lockfile command in linux to manage access to a special file. When my principal script crashes for some reason, i finish having hanging locks that prevent any new launch of the principal script and bother heavily its execution. Is there a…
Debugger
  • 9,130
  • 17
  • 45
  • 53
1
vote
3 answers

Error: Inconsistent dependency lock file using Gitlab CICD file

I am using gitlab cicd to deploy aws services into AWS using terraform. I have tested out the deployments from local to machine to AWS and the deployment has been successful. When code is pushed to gitlab, and the gitlab pipeline triggers i should…
1
vote
1 answer

Proper way to handle a lock file on rebase conflict

Hi I am not sure if I am doing things correctly. Whenever I rebase an hit an issue with package.json and the lock file. I fix the package.json, but then delete the lockfile and just run pnpm i again. But recently I noticed an issue where the…
blessanm86
  • 31,439
  • 14
  • 68
  • 79
1
vote
0 answers

Git pull on windows failing beacuse all lock files end in `?.lock`

I'm working on some CI automation involving pushing to a git branch, using git on Windows (Git 2.34.1). My problem is whenever I push to my upstream branch, and the push fails because since starting my CI job, that branch has been updated by…
John Bergqvist
  • 852
  • 13
  • 38
1
vote
0 answers

Can I use a 'bigger' monorepo package-lockfile.json for a smaller specific package.json file?

I'm using a NX monorepo. For deployment of the single apps, I am calculating which npm packages are needed by the app to create a very specific package.json file. So it is always a part of the monorepo package.json. As the app is build with the npm…
user3142695
  • 15,844
  • 47
  • 176
  • 332
1
vote
1 answer

gradle lockfile source control

Wanted to confirm with someone, are the lockfiles generated by gradle meant to be checked in to source control? My project has loads of them generated. https://docs.gradle.org/current/userguide/dependency_locking.html
rstr1112
  • 308
  • 4
  • 13
1
vote
0 answers

Yarn: Configure name of lockfile

We have multiple repositories that are added locally in one yarn workspace packages - Repo1 - Repo2 - Repo3 package.json yarn.lock Team1: only needs Repo1&2 so they do not checkout Repo3 Team2: only needs Repo1&3 so they do not checkout…
Bene
  • 874
  • 1
  • 10
  • 15
1
vote
1 answer

pipe ("bitwise OR") in call to fcntl.lockf()

This answer contains the following line: fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB) The pipe, is in Python a "bitwise OR" I have checked the Python docs for fcntl.lockf(fd, cmd, len=0, start=0, whence=0) and it says that cmd is one of: LOCK_UN…
cardamom
  • 6,873
  • 11
  • 48
  • 102
1
vote
0 answers

Lock file in NodeJS

I have a directory that has files. These files are created with one process everytime a trigger happens. Another NodeJS process tries to list down new files added and parse its content and push it to a remote DB. The problem that NodeJS app tries to…
1
vote
0 answers

How do I lock the entire dependency tree with JSPM?

I am working on a project with a number of frontend dependencies. The project uses both NPM and JSPM to manage these dependencies. According to the jspm documentation: All install ranges are saved in the package.json file, with the exact version…
Bob Arezina
  • 462
  • 5
  • 16
1
vote
0 answers

NPM5 Package LockFile

While trying to research how the new lock file system works for NPM 5's new package.lock.json, I have become a little confused. While I'm not currently able to test some of these questions, either way I had still hoped to find answers in…
1
vote
0 answers

Ensure a single instance is running

I have some code to ensure a single instance of my app is running, using a lock file: public static boolean ensureSingleInstance(String appName) { try { String path = Paths.get(System.getProperty("java.io.tmpdir"), appName +…
Will
  • 73,905
  • 40
  • 169
  • 246