mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
This ioctl(TIOCGWINSZ) call is no longer necessary, the result is never
used and the server now does it later on the tty fd directly.
This commit is contained in:
parent
b88ec14f0e
commit
36c0871c23
4
client.c
4
client.c
@ -17,7 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
@ -115,12 +114,9 @@ void
|
|||||||
client_send_identify(int flags)
|
client_send_identify(int flags)
|
||||||
{
|
{
|
||||||
struct msg_identify_data data;
|
struct msg_identify_data data;
|
||||||
struct winsize ws;
|
|
||||||
char *term;
|
char *term;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1)
|
|
||||||
fatal("ioctl(TIOCGWINSZ)");
|
|
||||||
data.flags = flags;
|
data.flags = flags;
|
||||||
|
|
||||||
if (getcwd(data.cwd, sizeof data.cwd) == NULL)
|
if (getcwd(data.cwd, sizeof data.cwd) == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user