Hi, I'm running -current (not latest, only GENERIC.MP#20), see dmesg below.
I run in a error in tmux (a long session: 10 days for now), when a want to create a new window (C-b C-c), I have this error: Create window failed: exec ksh: Too many open files Note, my default shell in tmux.conf is "exec ksh" (see ~/.tmux.conf below) My limit for open files are standard: semarie@bert:~$ ulimit -n 512 Currently, I have only 4 windows in this sessions, but: semarie@bert:~$ fstat -u semarie | grep tmux semarie tmux 3941 wd /home 4053504 drwx------ r 2560 semarie tmux 3941 0 / 17084 crw--w---- rw ttyp5 semarie tmux 3941 1 / 17084 crw--w---- rw ttyp5 semarie tmux 3941 2 / 17084 crw--w---- rw ttyp5 semarie tmux 3941 3 kqueue 0xd8c0f3d4 0 state: W semarie tmux 3941 4 /home 4053890 -rw-r--r-- r 1859 semarie tmux 3941 5* unix stream 0xd31c7680 <-> 0xd4105380 semarie tmux 1509 wd /home 4053504 drwx------ r 2560 semarie tmux 1509 0 / 17621 crw-rw-rw- rw null semarie tmux 1509 1 / 17621 crw-rw-rw- rw null semarie tmux 1509 2 / 17621 crw-rw-rw- rw null semarie tmux 1509 3 kqueue 0xd8c0f310 0 state: W semarie tmux 1509 4 /home 4053942 -rw-r--r-- r 1805 semarie tmux 1509 5* unix stream 0xd4105380 <-> 0xd31c7680 semarie tmux 1509 6* unix stream 0xd3228740 semarie tmux 1509 7 / 17084 crw--w---- rw ttyp5 semarie tmux 1509 9 / 17621 crw-rw-rw- r null semarie tmux 1509 10 / 17079 crw-rw-rw- rw ptyp2 semarie tmux 1509 11 / 17621 crw-rw-rw- r null semarie tmux 1509 12 / 17621 crw-rw-rw- r null semarie tmux 1509 13 / 17621 crw-rw-rw- r null semarie tmux 1509 14 / 17621 crw-rw-rw- r null semarie tmux 1509 15 / 17621 crw-rw-rw- r null semarie tmux 1509 16 / 17621 crw-rw-rw- r null [...] semarie tmux 1509 503 / 17621 crw-rw-rw- r null semarie tmux 1509 504 / 17621 crw-rw-rw- r null semarie tmux 1509 505 / 17621 crw-rw-rw- r null semarie tmux 1509 506 / 17621 crw-rw-rw- r null semarie tmux 1509 507 / 17621 crw-rw-rw- r null semarie tmux 1509 508 / 17621 crw-rw-rw- r null semarie tmux 1509 509 / 17618 crw-rw-rw- r tty semarie tmux 1509 510 / 17618 crw-rw-rw- r tty There are 510 descriptors opened... Any hints ? Does tmux could not closed not-need descriptors for old created windows ? It will try too keep this session running for debug if need... I could also upgrade to latest snapshot if needed. But I don't show any commit to tmux that seems related to that. But I could be wrong: please let me know. Thanks. -- Sebastien Marie My ~/.tmux.conf set -g default-command "exec ksh" set -g status-right "#(sysctl -n vm.loadavg)" # Statusbar properties. set -g display-time 3000 set -g status-bg black set -g status-fg cyan set-window-option -g window-status-current-attr bright,reverse set-window-option -g window-status-current-bg cyan set-window-option -g window-status-current-fg black # divers set -g default-path "" set -g bell-action any set -g set-titles on set -g base-index 1 set -g history-limit 5000 set -g update-environment "DISPLAY WINDOWID SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION DBUS_SESSION_BUS_ADDRESS XDG_SESSION_COOKIE KRB5CCNAME" My dmesg: OpenBSD 5.2-current (GENERIC.MP) #20: Tue Sep 11 11:54:03 MDT 2012 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz ("GenuineIntel" 686-class) 1.83 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM real mem = 2137399296 (2038MB) avail mem = 2091552768 (1994MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 03/09/06, BIOS32 rev. 0 @ 0xffa10, SMBIOS rev. 2.4 @ 0xf7b70 (44 entries) bios0: vendor Dell Inc. version "A03" date 03/09/2006 bios0: Dell Inc. MM061 acpi0 at bios0: rev 0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG BOOT SSDT acpi0: wakeup devices LID_(S3) PBTN(S4) PCI0(S3) USB0(S0) USB1(S0) USB2(S0) USB3(S0) EHCI(S0) CH31(S0) AZAL(S3) PCIE(S4) RP01(S4) RP02(S3) RP03(S3) RP04(S3) RP05(S3) RP06(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Genuine Intel(R) CPU T2400 @ 1.83GHz ("GenuineIntel" 686-class) 1.83 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2 acpimcfg0 at acpi0 addr 0xe0000000, bus 0-63 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (AGP_) acpiprt2 at acpi0: bus 3 (PCIE) acpiprt3 at acpi0: bus 11 (RP01) acpiprt4 at acpi0: bus -1 (RP02) acpiprt5 at acpi0: bus -1 (RP03) acpiprt6 at acpi0: bus 12 (RP04) acpiprt7 at acpi0: bus -1 (RP05) acpiprt8 at acpi0: bus -1 (RP06) acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature is 126 degC acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model " DELLUD2649" serial 878 type LION oem "Sanyo" acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: PBTN acpibtn2 at acpi0: SBTN acpivideo0 at acpi0: VID_ acpivideo1 at acpi0: VID_ acpivideo2 at acpi0: VID2 bios0: ROM list: 0xc0000/0xe800! 0xce800/0x1800 cpu0: Enhanced SpeedStep 1829 MHz: speeds: 1833, 1333, 1000 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xc0000000, size 0x10000000 inteldrm0 at vga1: apic 2 int 16 drm0 at inteldrm0 "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: msi azalia0: codecs: Sigmatel STAC9200, Conexant/0x2bfa, using Sigmatel STAC9200 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 2 int 16 pci1 at ppb0 bus 11 wpi0 at pci1 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi, MoW2, address 00:13:02:2e:8b:46 ppb1 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x01: apic 2 int 19 pci2 at ppb1 bus 12 uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int 20 uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int 21 uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2 int 22 uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2 int 23 ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 2 int 20 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe1 pci3 at ppb2 bus 3 bce0 at pci3 dev 0 function 0 "Broadcom BCM4401B1" rev 0x02: apic 2 int 17, address 00:15:c5:0b:8b:7a bmtphy0 at bce0 phy 1: BCM4401 10/100baseTX PHY, rev. 0 "Ricoh 5C832 Firewire" rev 0x00 at pci3 dev 1 function 0 not configured sdhc0 at pci3 dev 1 function 1 "Ricoh 5C822 SD/MMC" rev 0x19: apic 2 int 18 sdmmc0 at sdhc0 "Ricoh 5C843 MMC" rev 0x01 at pci3 dev 1 function 2 not configured "Ricoh 5C592 Memory Stick" rev 0x0a at pci3 dev 1 function 3 not configured "Ricoh 5C852 xD" rev 0x05 at pci3 dev 1 function 4 not configured ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x01: PM disabled pciide0 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <Hitachi HTS541616J9SA00> wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <_NEC, DVD+-RW ND-6650A, 102C> ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 2 int 17 iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pms0: Synaptics touchpad, firmware 6.2 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets root on wd0a (3ed108d2b4f1280b.a) swap on wd0b dump on wd0b sd0 at scsibus2 targ 1 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct fixed sd0: 51200MB, 512 bytes/sector, 104857680 sectors