summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortest-tools <test-tools>2006-10-09 12:53:45 +0000
committertest-tools <test-tools>2006-10-09 12:53:45 +0000
commit9e43d44bf66db4c2d72a19d75d977cd8f60b06de (patch)
tree26cf18cde0f29d9cc02f36c90d9a717583f97a47 /src
parent67cd433ef421bdd18d65987d0fa8ab2fc4777226 (diff)
downloadberyl-manager-9e43d44bf66db4c2d72a19d75d977cd8f60b06de.tar.gz
beryl-manager-9e43d44bf66db4c2d72a19d75d977cd8f60b06de.tar.bz2
Fixes symptom "Couldn't open /proc//environ", pidof on Gentoo returns empty line, instead of nothing, if not found.
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 7daab06..fb452c4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -316,7 +316,7 @@ void killWM()
g_warning(_("No pidof, this may not work right."));
else
{
- if (pret)
+ if (pret && strcmp(pret,"\n"))
{
gchar * cret;
if (strlen(pret))