New command, server-info, to show server info + terminal details. Also tweak term stuff a bit.

This commit is contained in:
Nicholas Marriott
2009-01-10 01:30:38 +00:00
parent 3ed5aa3e72
commit fb6c8ecae6
10 changed files with 167 additions and 26 deletions

View File

@ -1,4 +1,4 @@
/* $Id: server.c,v 1.89 2009-01-07 22:57:03 nicm Exp $ */
/* $Id: server.c,v 1.90 2009-01-10 01:30:38 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -118,6 +118,8 @@ server_start(const char *path)
setproctitle("server (%s)", path);
#endif
log_debug("server started, pid %ld", (long) getpid());
start_time = time(NULL);
socket_path = path;
memset(&sa, 0, sizeof sa);
sa.sun_family = AF_UNIX;