Commit f7f03181 authored by Joris Guisson's avatar Joris Guisson
Browse files

Merged rev 791389 (NFS home dir lock file fix)


svn path=/branches/ktorrent/3.0/; revision=791392
parent 1a5a7e01
Changes in 3.0.2 : Changes in 3.0.2 :
- Make sure seed time cannot wrap around (159756) - Make sure seed time cannot wrap around (159756)
- Fix broken convert of blocklists - Fix broken convert of blocklists
- Ported lock file fix for NFS home directories from KDE3 version
Changes in 3.0.1 : Changes in 3.0.1 :
- Fix sessionTTL not being able to be bigger then 99 - Fix sessionTTL not being able to be bigger then 99
......
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
bool GrabPIDLock() bool GrabPIDLock()
{ {
// open the PID file in the users ktorrent directory and attempt to lock it // open the PID file in the /tmp directory and attempt to lock it
QString pid_file = QDir::homePath() + "/.ktorrent.lock"; QString pid_file = QString("/tmp/.ktorrent_kde4_%1.lock").arg(getuid());
int fd = open(QFile::encodeName(pid_file),O_RDWR|O_CREAT,0640); int fd = open(QFile::encodeName(pid_file),O_RDWR|O_CREAT,0640);
if (fd < 0) if (fd < 0)
......
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