urxvtd and file descriptors

Marc Lehmann schmorp at schmorp.de
Thu Jan 29 12:03:44 CET 2009


On Wed, Jan 28, 2009 at 08:36:01PM -0500, Aron Griffis <agriffis at n01se.net> wrote:
> Marc Lehmann wrote:  [Wed Jan 28 2009, 07:00:25PM EST]
> > On Wed, Jan 28, 2009 at 01:03:50PM -0500, Aron Griffis <agriffis at n01se.net> wrote:
> > > I recently switched to urxvtd.  Today I noticed that fds 5 and
> > > 8 are open in all my terminals.  Is that expected?
> > 
> > well, terminals can't have file descriptors, only processes
> > have them. What do you mean with "terminals"? 
> 
> However my window manager seems to close fds, so if I start new
> urxvt processes instead of using urxvtc, 5 and 8 disappear.

Many programs and basically all terminal emulators close all fds - urxvt
is kind of the exception (it is considered a feature useful for example
when embedding).

> Not sure yet what's leaving those fds open, but I'm guessing gdm
> since I put a test prior to the /etc/X11/Xsession.d snippets and
> they're already open then.

If it's not you, then it's most likely a bug somewhere else, e.g.
in gdm. It might actually be security relevant (or some very weird
"feature" in gdm, if it is gdm), so investigating it might help something,
somewhere.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at goof.com
      -=====/_/_//_/\_,_/ /_/\_\




More information about the rxvt-unicode mailing list