diff options
author | nicm <nicm> | 2015-11-24 21:32:36 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-11-24 21:32:36 +0000 |
commit | 4e3015a8925f72b35393afec250cc46e4f480641 (patch) | |
tree | 5a72da5c0274716a5e0f678fe9040e997838c3b2 /proc.c | |
parent | bdbbd9711c05507161bc70ccdde91bdb719d943b (diff) | |
download | rtmux-4e3015a8925f72b35393afec250cc46e4f480641.tar.gz rtmux-4e3015a8925f72b35393afec250cc46e4f480641.tar.bz2 rtmux-4e3015a8925f72b35393afec250cc46e4f480641.zip |
Log some system and libevent information at startup.
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -19,6 +19,7 @@ #include <sys/types.h> #include <sys/queue.h> #include <sys/uio.h> +#include <sys/utsname.h> #include <errno.h> #include <event.h> @@ -170,6 +171,7 @@ proc_start(const char *name, struct event_base *base, int forkflag, void (*signalcb)(int)) { struct tmuxproc *tp; + struct utsname u; if (forkflag) { switch (fork()) { @@ -191,8 +193,13 @@ proc_start(const char *name, struct event_base *base, int forkflag, log_open(name); setproctitle("%s (%s)", name, socket_path); + if (uname(&u) < 0) + memset(&u, 0, sizeof u); + log_debug("%s started (%ld): socket %s, protocol %d", name, (long)getpid(), socket_path, PROTOCOL_VERSION); + log_debug("on %s %s %s; libevent %s (%s)", u.sysname, u.release, + u.version, event_get_version(), event_get_method()); tp = xcalloc(1, sizeof *tp); tp->name = xstrdup(name); |