From 0b0a3c02afa142d14f2ffd21df023e61686f430b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 22 Oct 2007 13:16:36 +0000 Subject: [PATCH] Return 0 on lost server so pkill works okay if scripted. --- TODO | 1 + client.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 341e3427..1e4cf281 100644 --- a/TODO +++ b/TODO @@ -48,6 +48,7 @@ -- For 0.1 -------------------------------------------------------------------- - man page - commands: + list clients (session, window, tty?) rename sessions swap windows link/copy windows diff --git a/client.c b/client.c index c51df390..71f66aa9 100644 --- a/client.c +++ b/client.c @@ -1,4 +1,4 @@ -/* $Id: client.c,v 1.14 2007-10-05 14:23:28 nicm Exp $ */ +/* $Id: client.c,v 1.15 2007-10-22 13:16:36 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -208,7 +208,7 @@ server_dead: local_done(); printf("[lost server]\n"); - return (1); + return (0); local_dead: /* Can't do much here. Log and die. */