On Sun, Jan 29, 2006 at 12:08:54AM +0100, Robert Hillen wrote: > This happens when logging in to the uml via a telnet port. The problem > is that in this case the /dev/net/tun device remains attached to 3 > proceses on the host:
Nice diagnosis - does this patch below help? Index: linux-2.6.15-mm/arch/um/os-Linux/drivers/tuntap_user.c =================================================================== --- linux-2.6.15-mm.orig/arch/um/os-Linux/drivers/tuntap_user.c 2006-01-03 17:39:46.000000000 -0500 +++ linux-2.6.15-mm/arch/um/os-Linux/drivers/tuntap_user.c 2006-01-28 21:08:13.000000000 -0500 @@ -122,6 +122,7 @@ static int tuntap_open_tramp(char *gate, return(-EINVAL); } *fd_out = ((int *) CMSG_DATA(cmsg))[0]; + os_set_exec_close(*fd_out, 1); return(0); } @@ -137,7 +138,8 @@ static int tuntap_open(void *data) return(err); if(pri->fixed_config){ - pri->fd = os_open_file("/dev/net/tun", of_rdwr(OPENFLAGS()), 0); + pri->fd = os_open_file("/dev/net/tun", + of_cloexec(of_rdwr(OPENFLAGS())), 0); if(pri->fd < 0){ printk("Failed to open /dev/net/tun, err = %d\n", -pri->fd); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user