Comment 0 for bug 1190344

Revision history for this message
rumen (rumen) wrote : lightdm is leaking FDs -fix

Description of problem:
Each time the greeter starts the number of open FDs increase. After each login and logout cycle the number of open FDs is increased. Which over time leads to impossible logins and the message in /var/log/messages is:

Jun 12 02:44:24 node3 lightdm[17471]: ** (lightdm:17471): WARNING **: Failed to create pipe to communicate with session process: To...en files
Jun 12 02:45:29 node3 lightdm[17471]: ** (lightdm:17471): WARNING **: Failed to create pipes: Too many open files
Jun 12 02:47:47 node3 lightdm[17471]: ** (lightdm:17471): WARNING **: Failed to create pipes: Too many open files

Tested on:
Fedora 19 and Ubuntu 13.04 - lightdm 1.6.0

Steps to Reproduce:

1. login on a console and find the pid of main lightdm process then:
# lsof -p {lightdm_pid} |grep FIFO |wc -l
26

2. switch to X console and login through lightdm and then logout

3. go back on comsole
# lsof -p {lightdm_pid} |grep FIFO |wc -l
32

Here is a patch that fixes the issue. It may have several lines offset because we use modified lightdm but it is good for the original version too.

regards,
Rumen