https://bugzilla.novell.com/show_bug.cgi?id=223602 Summary: yast starts automout attached to the controlling tty Product: openSUSE 10.2 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jw@novell.com QAContact: jsrain@novell.com automount has several filedescriptors open to the controlling terminal, when started by yast. rcautofs starts the daemon properly detached. login as root via ssh # tty /dev/pts/4 # yast -> Network Services -> NIS Client If 'Start Automounter' is enabled, disable it -> Finish and start again. (*) Use NIS [if not already enabled] [x] Start Automounter -> Finish. # lsof /dev/pts/4 | grep auto automount 24695 root 4r CHR 136,4 6 /dev/pts/4 automount 24695 root 5w CHR 136,4 6 /dev/pts/4 automount 24704 root 4r CHR 136,4 6 /dev/pts/4 automount 24704 root 5w CHR 136,4 6 /dev/pts/4 # exit The ssh connection hangs until we do 'rcautofs restart' from another shell. Strace shows me 26236 execve("/usr/sbin/automount", ["/usr/sbin/automount", "/mounts", "yp", "auto.mounts"], [/* 71 vars */]) = 0 I see close(3) and close(6) before, but apparently 4 and 5 are left over from y2base: 26615 execve("/usr/lib/YaST2/bin/y2base", ["/usr/lib/YaST2/bin/y2base", "menu", "ncurses", "--nothreads"] .. 26615 readlink("/proc/self/fd/0", "/dev/pts/4", 4095) = 10 26615 uname({sys="Linux", node="testy-jw", ...}) = 0 26615 stat64("/var/log/YaST2/y2log", {st_mode=S_IFREG|0644, st_size=2775377, ..}) = 0 26615 open("/var/log/YaST2/y2log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 4 26615 fstat64(4, {st_mode=S_IFREG|0644, st_size=2775377, ...}) = 0 26615 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ed2000 26615 fstat64(4, {st_mode=S_IFREG|0644, st_size=2775377, ...}) = 0 26615 _llseek(4, 2775377, [2775377], SEEK_SET) = 0 26615 time(NULL) = 1164370372 26615 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0 26615 write(4, "2006-11-24 13:12:52 <1> testy-jw"..., 92) = 92 26615 close(4) = 0 26615 munmap(0xb7ed2000, 4096) = 0 26615 open("/dev/pts/4", O_RDONLY|O_LARGEFILE) = 4 26615 open("/dev/pts/4", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 5 Please add a loop to close all filedescriptors above 2 before exec'ing any daemons from yast. -- 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, or are watching someone who is.