Package: awesome
Version: 2.3.3-1
Severity: normal

When I start an xterm with bash from awesome it has like these open
files:

$ lsof -n -p 23385
COMMAND   PID   USER   FD   TYPE     DEVICE    SIZE    NODE NAME
...
bash    23385 helmut    0u   CHR      136,3               5 /dev/pts/3
bash    23385 helmut    1u   CHR      136,3               5 /dev/pts/3
bash    23385 helmut    2u   CHR      136,3               5 /dev/pts/3
bash    23385 helmut    4u  unix 0xe93f73c0           25134 
/home/helmut/.awesome_ctl.0
bash    23385 helmut    5w  FIFO        0,5           24642 pipe
bash    23385 helmut    6u  unix 0xe93f7e40           33058 
/home/helmut/.awesome_ctl.0
bash    23385 helmut    7r  FIFO        0,5           24646 pipe
bash    23385 helmut    8u  unix 0xe93f7ac0           33224 
/home/helmut/.awesome_ctl.0
bash    23385 helmut  255u   CHR      136,3               5 /dev/pts/3
$

However these .awesome_ctl.0 sockets are not connected, so they are of
no use. I therefore suggest to set the FD_CLOEXEC flag like this:

int flags;
flags = fcntl(socket_fd, F_GETFD);
if(flags == -1)
        handle_error();
flags |= FD_CLOEXEC;
if(fcntl(socket_fd, FD_SETFD, flags) < 0)
        handle_error;

This fix should go into lenny if possible.

Helmut

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.3
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages awesome depends on:
ii  libc6                         2.7-13     GNU C Library: Shared libraries
ii  libcairo2                     1.6.4-6    The Cairo 2D vector graphics libra
ii  libconfuse0                   2.6-2      Library for parsing configuration 
ii  libglib2.0-0                  2.16.5-1   The GLib library of C routines
ii  libimlib2                     1.4.0-1.1  powerful image loading and renderi
ii  libpango1.0-0                 1.20.5-2   Layout and rendering of internatio
ii  libx11-6                      2:1.1.5-1  X11 client-side library
ii  libxext6                      2:1.0.4-1  X11 miscellaneous extension librar
ii  libxinerama1                  2:1.0.3-2  X11 Xinerama extension library
ii  libxrandr2                    2:1.2.3-1  X11 RandR extension library

awesome recommends no packages.

awesome suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to