summaryrefslogtreecommitdiffstats
authornicm <nicm>2010-10-24 19:54:41 (GMT)
committer Raghavendra D Prabhu <[email protected]>2011-01-02 18:59:31 (GMT)
commit06ab4c63755237dbc76b3e278b3990eff3241982 (patch) (side-by-side diff)
tree2b311cd1295f0a5283c381ae6376199f7f46b7e0
parent5a29d7c53bc837929ca1e3027d0370be5af786ab (diff)
downloadtmux-old-06ab4c63755237dbc76b3e278b3990eff3241982.zip
tmux-old-06ab4c63755237dbc76b3e278b3990eff3241982.tar.gz
tmux-old-06ab4c63755237dbc76b3e278b3990eff3241982.tar.bz2
Put setproctitle back under HAVE_SETPROCTITLE.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--client.c4
-rw-r--r--server.c4
-rw-r--r--tmux.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/client.c b/client.c
index 23f92a1..16ea409 100644
--- a/client.c
+++ b/client.c
@@ -1,4 +1,4 @@
-/* $Id: client.c,v 1.99 2010/10/24 01:31:08 tcunha Exp $ */
+/* $Id: client.c,v 1.100 2010/10/24 19:54:41 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <[email protected]>
@@ -157,7 +157,9 @@ client_main(int argc, char **argv, int flags)
}
/* Set process title, log and signals now this is the client. */
+#ifdef HAVE_SETPROCTITLE
setproctitle("client (%s)", socket_path);
+#endif
logfile("client");
/* Create imsg. */
diff --git a/server.c b/server.c
index ec6bc83..841231a 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.247 2010/10/24 01:31:08 tcunha Exp $ */
+/* $Id: server.c,v 1.248 2010/10/24 19:54:41 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <[email protected]>
@@ -155,7 +155,9 @@ server_start(void)
start_time = time(NULL);
log_debug("socket path %s", socket_path);
+#ifdef HAVE_SETPROCTITLE
setproctitle("server (%s)", socket_path);
+#endif
server_fd = server_create_socket();
server_client_create(pair[1]);
diff --git a/tmux.c b/tmux.c
index 91f4996..5c1341a 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.220 2010/10/24 01:31:08 tcunha Exp $ */
+/* $Id: tmux.c,v 1.221 2010/10/24 19:54:41 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <[email protected]>
@@ -472,8 +472,10 @@ main(int argc, char **argv)
strlcpy(socket_path, path, sizeof socket_path);
xfree(path);
+#ifdef HAVE_SETPROCTITLE
/* Set process title. */
setproctitle("%s (%s)", __progname, socket_path);
+#endif
/* Pass control to the client. */
#ifdef HAVE_BROKEN_KQUEUE