Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: timeout problem in ssh sessions
- X-seq: zsh-users 12608
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: timeout problem in ssh sessions
- Date: Sat, 16 Feb 2008 23:11:00 -0800
- In-reply-to: <20080217000027.GN619@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080213134200.GB31852@xxxxxxxxx> <200802131349.m1DDnXRF004831@xxxxxxxxxxxxxx> <27b8b8a0802130621x47568c7fo304848d02a1c6e76@xxxxxxxxxxxxxx> <20080213143803.GI619@xxxxxxxxxxxxxxxxxxx> <20080214125415.GC31852@xxxxxxxxx> <20080214180818.GO619@xxxxxxxxxxxxxxxxxxx> <20080215103220.GF31852@xxxxxxxxx> <080215123047.ZM29728@xxxxxxxxxxxxxxxxxxxxxx> <20080215221834.GA23684@xxxxxxxxx> <080215192616.ZM30010@xxxxxxxxxxxxxxxxxxxxxx> <20080217000027.GN619@xxxxxxxxxxxxxxxxxxx>
On Feb 17, 1:00am, Vincent Lefevre wrote:
}
} On 2008-02-15 19:26:16 -0800, Bart Schaefer wrote:
} > You can load the zsh/stat module and use
} >
} > for fd in {0..63}; zstat -f $fd ...
}
} How do you know which ones will block ssh?
Well ... unfortunately probably none of them will. An X program is
going to look at $DISPLAY and open its own connection to the X server;
you can't discover that by examining the descriptors that zsh still
has open. You'd need read access to /proc/$PPID/fd or the equivalent,
which generally you won't have because those will be owned by the
privileged user that started sshd (even though sshd itself will have
dropped privileges to become owned by the current user).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author