summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcyberorg <cyberorg>2006-10-07 09:03:41 +0000
committercyberorg <cyberorg>2006-10-07 09:03:41 +0000
commit3e2c60e48dd0b55eac347e99d980d1e09ee5f168 (patch)
tree09e8c73ec5864bcbb134aae3d08a9b321780d0db /src
parent43a90450b58006f177b5ea943c54d99204683284 (diff)
downloadberyl-manager-3e2c60e48dd0b55eac347e99d980d1e09ee5f168.tar.gz
beryl-manager-3e2c60e48dd0b55eac347e99d980d1e09ee5f168.tar.bz2
allow another instance of beryl-manager to start replacing old one
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 3e26758..4469c6d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -902,9 +902,7 @@ int main(int argc, char ** argv)
}
if (flock(fd,LOCK_EX | LOCK_NB)!=0)
{
- e=errno;
- g_warning(_("Can't run more than one beryl-manager.\n(couldn't obtain lock) Error:%s"),strerror(e));
- return 2;
+ execlp("beryl-manager","beryl-manager",NULL);
}
dprintf(fd,"%d\n",getpid());
if (!XInitThreads())