[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#252366: konsole: fds not closed before execing shell



On Thursday 03 June 2004 00:47, Cesar Eduardo Barros wrote:
> Package: konsole
> Version: 4:3.2.2-1
> Severity: normal
> 
> cesarb@flower:~[0]$ ls -l /proc/self/fd
> total 5
> lrwx------    1 cesarb   cesarb         64 Jun  2 19:38 0 -> /dev/pts/70
> lrwx------    1 cesarb   cesarb         64 Jun  2 19:38 1 -> /dev/pts/70
> lrwx------    1 cesarb   cesarb         64 Jun  2 19:38 2 -> /dev/pts/70
> lr-x------    1 cesarb   cesarb         64 Jun  2 19:38 3 -> /proc/12024/fd
> lrwx------    1 cesarb   cesarb         64 Jun  2 19:38 4 -> /dev/dri/card0
> 
> This happens within konsole. Looks like it forgot to close all file
> descriptors before execing the shell (/dev/dri/card0 should not be
> open on the shell).

Hi Cesar,

that's interesting and made me curious ;)  When one starts from
konsole and tries  ls -l /proc/$$/fd:

	xterm 		--> card0 still open
	xterm -ls	--> card0 closed
	konsole -ls	--> card0 closed
	konsole 	--> card0 open on fd 4 and(!) 5

I'm using testing with xfree and arts from unstable.
Achim

> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.6-flower
> Locale: LANG=C, LC_CTYPE=en_US.UTF-8
> 
> Versions of packages konsole depends on:
> ii  kdelibs4                  4:3.2.2-2      KDE core libraries
> ii  libart-2.0-2              2.3.16-5       Library of functions for 2D graphi
> ii  libc6                     2.3.2.ds1-12   GNU C Library: Shared libraries an
> ii  libfam0c102               2.7.0-5        client library to control the FAM 
> ii  libgcc1                   1:3.3.3-9      GCC support library
> ii  libice6                   4.3.0.dfsg.1-1 Inter-Client Exchange library
> ii  libpng12-0                1.2.5.0-6      PNG library - runtime
> ii  libqt3c102-mt             3:3.2.3-2      Qt GUI Library (Threaded runtime v
> ii  libsm6                    4.3.0.dfsg.1-1 X Window System Session Management
> ii  libstdc++5                1:3.3.3-9      The GNU Standard C++ Library v3
> ii  libx11-6                  4.3.0.dfsg.1-1 X Window System protocol client li
> ii  libxext6                  4.3.0.dfsg.1-1 X Window System miscellaneous exte
> ii  libxrender1               0.8.3-7        X Rendering Extension client libra
> ii  libxtst6                  4.3.0.dfsg.1-1 X Window System event recording an
> ii  xlibs                     4.3.0.dfsg.1-1 X Window System client libraries m
> ii  zlib1g                    1:1.2.1.1-3    compression library - runtime
> 
> -- no debconf information
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-qt-kde-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 
> 

-- 
  To me vi is Zen.  To use vi is to practice zen. Every command is
  a koan. Profound to the user, unintelligible to the uninitiated.
  You discover truth everytime you use it.
                                      -- reddy@lion.austin.ibm.com



Reply to: