https://bugzilla.novell.com/show_bug.cgi?id=786096 https://bugzilla.novell.com/show_bug.cgi?id=786096#c0 Summary: cron does not close file descriptors before invocation of commands Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: All OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: f+novell@congenio.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0 When I use lvm2 commands within a shell script that is being called from cron, I always get errors like these in the cron mails: File descriptor 5 (/var/spool/cron/tabs) leaked on lvcreate invocation. Parent PID 15139: /bin/sh File descriptor 6 (/etc/cron.d) leaked on lvcreate invocation. Parent PID 15139: /bin/sh File descriptor 7 (/etc/crontab) leaked on lvcreate invocation. Parent PID 15139: /bin/sh It shows that lvm2 regards open file descriptors as a security hole, complains and then closes them. This behaviour can be temporarily fixed by setting the undocumented environment variable LVM_SUPPRESS_FD_WARNINGS. However, it should be fixed in cron itself - there is a similar bug in Debian, so the bug could be fixed upstream (maybe it already is). Reproducible: Always Steps to Reproduce: Use any lvm2 command in a cron script. Actual Results: Mail containing errors about leaked file descriptors that cron left open: File descriptor 5 (/var/spool/cron/tabs) leaked on lvcreate invocation. Parent PID 15139: /bin/sh File descriptor 6 (/etc/cron.d) leaked on lvcreate invocation. Parent PID 15139: /bin/sh File descriptor 7 (/etc/crontab) leaked on lvcreate invocation. Parent PID 15139: /bin/sh Expected Results: No error output. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.