aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/server.c b/server.c
index 721bb570..7a4e5fcf 100644
--- a/server.c
+++ b/server.c
@@ -106,11 +106,11 @@ server_create_socket(void)
/* Fork new server. */
int
-server_start(char *path)
+server_start(void)
{
struct window_pane *wp;
int pair[2];
- char rpathbuf[MAXPATHLEN], *cause;
+ char *cause;
struct timeval tv;
u_int i;
@@ -155,12 +155,8 @@ server_start(char *path)
utf8_build();
start_time = time(NULL);
- socket_path = path;
-
- if (realpath(socket_path, rpathbuf) == NULL)
- strlcpy(rpathbuf, socket_path, sizeof rpathbuf);
log_debug("socket path %s", socket_path);
- setproctitle("server (%s)", rpathbuf);
+ setproctitle("server (%s)", socket_path);
server_fd = server_create_socket();
server_client_create(pair[1]);