aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sympathy.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sympathy.c')
-rw-r--r--apps/sympathy.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/apps/sympathy.c b/apps/sympathy.c
index a754b3d..94105a3 100644
--- a/apps/sympathy.c
+++ b/apps/sympathy.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.9 2008/02/20 18:49:11 staffcvs
+ * *** empty log message ***
+ *
* Revision 1.8 2008/02/20 18:33:37 james
* *** empty log message ***
*
@@ -43,6 +46,9 @@ static char rcsid[] = "$Id$";
#include <sys/utsname.h>
#include <sys/stat.h>
#include <dirent.h>
+#include <string.h>
+#include <strings.h>
+#include <malloc.h>
#include "mainloop.h"
@@ -396,6 +402,11 @@ main (int argc, char *argv[])
oflags['p']++;
}
+ if (oflags['s'] && !oflags['F'])
+ {
+ daemon (1, 0); /*incase socket is relative path, unlink then will fail */
+ }
+
if (oflags['s'] || oflags['t'])
{
@@ -448,10 +459,6 @@ main (int argc, char *argv[])
}
- if (oflags['s'] && !oflags['F'])
- {
- daemon (1, 0); /*incase socket is relative path, unlink then will fail */
- }
if (oflags['c'] || oflags['t'])
{