Subject: files left open across exec?
To: None <current-users@netbsd.org>
From: Wolfgang Rupprecht <wolfgang+gnus20011018T155600@wsrcc.com>
List: current-users
Date: 10/18/2001 16:03:32
This is from netbsd-current as of a few minutes ago.  This particular
named was restarted from bash running under xterm.  Notice fd 5,6,7.
Surely named is not going to try to render true-type-font to some
random udp port. ;-)

Did something change recently with respect to files staying open
across execs (or is this just a longstanding bug in xfree 4.x)?

    $ lsof -c named
    COMMAND PID USER   FD   TYPE     DEVICE SIZE/OFF   NODE NAME
    named   605 root  cwd   VDIR        0,0     1024   1960 /etc/namedb
    named   605 root  txt   VREG        0,6   228028 551651 /u/pkg/sbin/named
    named   605 root  txt   VREG        0,5    45354  15397 /usr/libexec/ld.elf_so
    named   605 root  txt   VREG        0,6   195774 883396 /u/pkg/lib/liblwres.so.2.0
    named   605 root  txt   VREG        0,6  2237857 883365 /u/pkg/lib/libdns.so.5.0
    named   605 root  txt   VREG        0,5   818354  48349 /usr/lib/libcrypto.so.1.0
    named   605 root  txt   VREG        0,6   140807 883332 /u/pkg/lib/libisccfg.so.0.0
    named   605 root  txt   VREG        0,6    91635 883240 /u/pkg/lib/libisccc.so.0.0
    named   605 root  txt   VREG        0,6   524043 883178 /u/pkg/lib/libisc.so.4.0
    named   605 root  txt   VREG        0,5   681773  48036 /usr/lib/libc.so.12.79
    named   605 root    0u  VCHR        2,2      0t0    410 /dev/null
    named   605 root    1u  VCHR        2,2      0t0    410 /dev/null
    named   605 root    2u  VCHR        2,2      0t0    410 /dev/null
    named   605 root    3u  unix 0xc122f1ec      0t0        ->0xc122f0a4
    named   605 root    4u  IPv6 0xc1278100      0t0    UDP *:domain
    named   605 root    5r  VREG        0,6    86048 271834 /u/X11R6.4/lib/X11/fonts/truetype/cour.ttf
    named   605 root    6r  VREG        0,6     1951 271809 /u/X11R6.4/lib/X11/fonts/truetype/XftConfig
    named   605 root    7r  VREG        0,6    94140 271835 /u/X11R6.4/lib/X11/fonts/truetype/courbd.ttf
    named   605 root    8u  IPv6 0xc1281268      0t0    TCP *:domain (LISTEN)
    named   605 root    9u  IPv4 0xc123a2a0      0t0    UDP c460058-a.frmt1.sfba.home.com:domain
    named   605 root   10u  IPv4 0xc128139c      0t0    TCP c460058-a.frmt1.sfba.home.com:domain (LISTEN)
    named   605 root   11u  IPv4 0xc123a1e0      0t0    UDP capsicum.wsrcc.com:domain
    named   605 root   12u  IPv4 0xc1281134      0t0    TCP capsicum.wsrcc.com:domain (LISTEN)
    named   605 root   13u  IPv4 0xc123a180      0t0    UDP localhost:domain
    named   605 root   14u  IPv4 0xc1281000      0t0    TCP localhost:domain (LISTEN)
    named   605 root   15u  IPv4 0xc123a0c0      0t0    UDP *:65274
    named   605 root   16u  IPv4 0xc12814d0      0t0    TCP localhost:953 (LISTEN)
    named   605 root   17r  VCHR       46,0      0t0    455 /dev/random
    named   605 root   18w  VREG        0,4    98830 537665 /var/log/named.log

-wolfgang
-- 
       Wolfgang Rupprecht <wolfgang+gnus@dailyplanet.wsrcc.com>
		    http://www.wsrcc.com/wolfgang/
Coming soon: GPS mapping tools for Open Systems. http://www.gnomad-mapping.com/