aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames <>2008-02-28 22:43:25 +0000
committerjames <>2008-02-28 22:43:25 +0000
commit93018484d4542523589e55789c220590ecc818de (patch)
tree34045922fab1ba5a976e50b775124fae46a3be28
parent3ea64d3f157cabbf22a9c96d5dd356659047a093 (diff)
downloadsympathy-93018484d4542523589e55789c220590ecc818de.tar.gz
sympathy-93018484d4542523589e55789c220590ecc818de.tar.bz2
sympathy-93018484d4542523589e55789c220590ecc818de.zip
*** empty log message ***
-rw-r--r--apps/sympathy.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/apps/sympathy.c b/apps/sympathy.c
index 2339853..9c1ce63 100644
--- a/apps/sympathy.c
+++ b/apps/sympathy.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.25 2008/02/28 22:43:25 james
+ * *** empty log message ***
+ *
* Revision 1.24 2008/02/28 22:00:42 james
* *** empty log message ***
*
@@ -495,14 +498,6 @@ main (int argc, char *argv[])
/*nochdir incase socket is relative path, unlink then will fail */
daemon (1, 0);
- /*Tell our parent's parent what our pid is */
- if (csnok)
- {
- pid = getpid ();
-
- write (csnok_pipe[1], &pid, sizeof (pid));
- close (csnok_pipe[1]);
- }
}
@@ -522,6 +517,16 @@ main (int argc, char *argv[])
}
server_socket = socket_listen (oargs['k']);
+
+ /*Tell our parent's parent what our pid is */
+ if (csnok)
+ {
+ pid = getpid ();
+
+ write (csnok_pipe[1], &pid, sizeof (pid));
+ close (csnok_pipe[1]);
+ }
+
if (!server_socket)
fatal_moan ("failed to create socket %s for listening", oargs['k']);