Commit ebd6f111 authored by Michael Pyne's avatar Michael Pyne
Browse files

Forgot to include the bit about writing the PID into the lockfile.


svn path=/trunk/KDE/kdesdk/scripts/kdesvn-build; revision=434137
parent 84826f55
......@@ -2041,10 +2041,17 @@ sub get_lock
# twice.
print clr " y[WARNING]: stale kdesvn-build lockfile found, deleting.\n";
unlink $lockfile;
sysopen LOCKFILE, $lockfile, O_WRONLY | O_CREAT | O_EXCL;
sysopen LOCKFILE, $lockfile, O_WRONLY | O_CREAT | O_EXCL and do
print LOCKFILE "$$\n";
return 1; # Hope the sysopen worked.
print LOCKFILE "$$\n";
# Even if we fail it's generally better to allow the script to proceed
# without being a jerk about things, especially as more non-CLI-skilled
# users start using kdesvn-build to build KDE.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment