mirror of
https://github.com/tmux/tmux.git
synced 2026-07-30 12:17:52 +00:00
Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master: Do not try to write to clients which have died, GitHub issue 5431 from Stefan Ladstätter.
This commit is contained in:
3
file.c
3
file.c
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: file.c,v 1.20 2026/05/17 10:54:01 nicm Exp $ */
|
||||
/* $OpenBSD: file.c,v 1.21 2026/07/26 15:08:15 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -185,6 +185,7 @@ file_can_print(struct client *c)
|
||||
{
|
||||
if (c == NULL ||
|
||||
(c->flags & CLIENT_ATTACHED) ||
|
||||
(c->flags & CLIENT_DEAD) ||
|
||||
(c->flags & CLIENT_CONTROL))
|
||||
return (0);
|
||||
return (1);
|
||||
|
||||
Reference in New Issue
Block a user