aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-10-24 01:31:08 +0000
committerTiago Cunha <tcunha@gmx.com>2010-10-24 01:31:08 +0000
commitbdbd4e28c2c3cbf6c1372bee50a7ea26b32d7041 (patch)
tree6123779990e9dee74bba3422e23f88ce866493f4 /server.c
parent1276ea36536a5d25e041fb2d50f4743618d07cfd (diff)
downloadrtmux-bdbd4e28c2c3cbf6c1372bee50a7ea26b32d7041.tar.gz
rtmux-bdbd4e28c2c3cbf6c1372bee50a7ea26b32d7041.tar.bz2
rtmux-bdbd4e28c2c3cbf6c1372bee50a7ea26b32d7041.zip
Sync OpenBSD patchset 777:
Merge the before and after attach client code into one in client.c (instead of two in tmux.c and client.c).
Diffstat (limited to 'server.c')
-rw-r--r--server.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/server.c b/server.c
index 1d949ca3..2fd820bf 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.246 2010-10-24 00:45:57 tcunha Exp $ */
+/* $Id: server.c,v 1.247 2010-10-24 01:31:08 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -105,16 +105,13 @@ server_create_socket(void)
/* Fork new server. */
int
-server_start(char *path)
+server_start(void)
{
struct window_pane *wp;
int pair[2];
char *cause;
struct timeval tv;
u_int i;
-#ifdef HAVE_SETPROCTITLE
- char rpathbuf[MAXPATHLEN];
-#endif
/* The first client is special and gets a socketpair; create it. */
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, pair) != 0)
@@ -157,14 +154,8 @@ server_start(char *path)
utf8_build();
start_time = time(NULL);
- socket_path = path;
-
-#ifdef HAVE_SETPROCTITLE
- if (realpath(socket_path, rpathbuf) == NULL)
- strlcpy(rpathbuf, socket_path, sizeof rpathbuf);
log_debug("socket path %s", socket_path);
- setproctitle("server (%s)", rpathbuf);
-#endif
+ setproctitle("server (%s)", socket_path);
server_fd = server_create_socket();
server_client_create(pair[1]);