mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
dd66ede38b
@ -335,8 +335,8 @@ server_destroy_pane(struct window_pane *wp, int notify)
|
||||
tim);
|
||||
} else if (WIFSIGNALED(wp->status)) {
|
||||
screen_write_nputs(&ctx, -1, &gc,
|
||||
"Pane is dead (signal %d, %s)",
|
||||
WTERMSIG(wp->status),
|
||||
"Pane is dead (signal %s, %s)",
|
||||
sig2name(WTERMSIG(wp->status)),
|
||||
tim);
|
||||
}
|
||||
|
||||
|
12
tmux.c
12
tmux.c
@ -26,6 +26,7 @@
|
||||
#include <langinfo.h>
|
||||
#include <locale.h>
|
||||
#include <pwd.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
@ -164,6 +165,17 @@ setblocking(int fd, int state)
|
||||
}
|
||||
}
|
||||
|
||||
const char *
|
||||
sig2name(int signo)
|
||||
{
|
||||
static char s[11];
|
||||
|
||||
if (signo > 0 && signo < NSIG)
|
||||
return (sys_signame[signo]);
|
||||
xsnprintf(s, sizeof s, "%d", signo);
|
||||
return (s);
|
||||
}
|
||||
|
||||
const char *
|
||||
find_cwd(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user