[wplug] Debug: 5-second timeout when starting emacs

James O'Kane jo2y at midnightlinux.com
Wed Oct 5 13:38:38 EDT 2005


On Wed, 5 Oct 2005, Eric Cooper wrote:

> On Tue, Oct 04, 2005 at 01:26:42AM -0400, Brandon Kuczenski wrote:
>> select(5, [4], [], [], {4, 231000})     = 0 (Timeout)

In addition to what Eric suggested, you can look at the arguments to 
select. From the man page, the [4] says that it's waiting to read from 
filehandle 4. If you're fast enough, you can do an ls -l /proc/<pid of 
emacs>/fd and look at what .../fd/4 points to.
Quite possibly it will point to something of the form socket:[2994446].

That number means something to the kernel, and you can see more 
information about with something like:
lsof |grep 2994446
slogin     9983    jo2y    3u  IPv4    2994446                  TCP 
<hostname>:40073-><differenthostname>:ssh (ESTABLISHED)

I know that isn't the best arguments for lsof, but I always forget what to 
use, and that's worked well enough for me.

Doing this within 5 seconds is left as an excersize for the reader.

-james



More information about the wplug mailing list