=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.71 retrieving revision 1.72 diff -u -r1.71 -r1.72 --- src/usr.bin/tmux/format.c 2015/06/10 12:56:04 1.71 +++ src/usr.bin/tmux/format.c 2015/06/14 10:07:44 1.72 @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.71 2015/06/10 12:56:04 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.72 2015/06/14 10:07:44 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -271,6 +271,7 @@ *ptr = '\0'; format_add(ft, "host_short", "%s", host); } + format_add(ft, "pid", "%ld", (long) getpid()); return (ft); } @@ -703,6 +704,7 @@ if (ft->s == NULL) ft->s = c->session; + format_add(ft, "client_pid", "%ld", (long) c->pid); format_add(ft, "client_height", "%u", c->tty.sy); format_add(ft, "client_width", "%u", c->tty.sx); if (c->tty.path != NULL)