[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dip -k doesn't fully shut things down anymore



Package: netstd
Version: 2.02-1

dip works fine.  But when I go to shut the connection down, the
modem isn't hung up (though ifconfig and route have been deconfigured
correctly).  I've tried kernels .80, .85, .86, .89, and .90.

Here is the output of "strace -o dipk.strace -f /usr/sbin/dip -k":
670   mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x40006000
670   mprotect(0x40000000, 18491, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
670   mprotect(0x8000000, 68221, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
670   stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=3434, ...}) = 0
670   open("/etc/ld.so.cache", O_RDONLY) = 4
670   mmap(0, 3434, PROT_READ, MAP_SHARED, 4, 0) = 0x40007000
670   close(4)                          = 0
670   open("/lib/libc.so.5.2.18", O_RDONLY) = 4
670   read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
670   mmap(0, 737280, PROT_NONE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x40008000
670   mmap(0x40008000, 507678, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0x40008000
670   mmap(0x40084000, 22200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x7b000) = 0x40084000
670   mmap(0x4008a000, 202724, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|0x20, 4294967295, 0) = 0x4008a000
670   close(4)                          = 0
670   mprotect(0x40008000, 507678, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
670   munmap(0x40007000, 3434)          = 0
670   mprotect(0x8000000, 68221, PROT_READ|PROT_EXEC) = 0
670   mprotect(0x40008000, 507678, PROT_READ|PROT_EXEC) = 0
670   mprotect(0x40000000, 18491, PROT_READ|PROT_EXEC) = 0
670   personality(0)                    = 0
670   getuid()                          = 101
670   brk(0x801a14c)                    = 0x801a14c
670   brk(0x801b000)                    = 0x801b000
670   brk(0x801c000)                    = 0x801c000
670   brk(0x801d000)                    = 0x801d000
670   open("/etc/passwd", O_RDONLY)     = 4
670   brk(0x801e000)                    = 0x801e000
670   fstat(4, {st_mode=S_IFREG|0644, st_size=712, ...}) = 0
670   brk(0x801f000)                    = 0x801f000
670   read(4, "root:GMYAiA8q/yF2g:0:0:root:/roo"..., 4096) = 712
670   brk(0x8020000)                    = 0x8020000
670   lseek(4, -184, SEEK_CUR)          = 528
670   close(4)                          = 0
670   uname({sys="Linux", node="syntropy", ...}) = 0
670   open("/usr/share/locale/C/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
670   stat("/etc/locale/C/libc.cat", 0xbfffef98) = -1 ENOENT (No such file or directory)
670   stat("/usr/lib/locale/C/libc.cat", 0xbfffef98) = -1 ENOENT (No such file or directory)
670   stat("/usr/lib/locale/libc/C", 0xbfffef98) = -1 ENOENT (No such file or directory)
670   stat("/usr/share/locale/C/libc.cat", 0xbfffef98) = -1 ENOENT (No such file or directory)
670   stat("/usr/local/share/locale/C/libc.cat", 0xbfffef98) = -1 ENOENT (No such file or directory)
670   open("/etc/host.conf", O_RDONLY)  = 4
670   fstat(4, {st_mode=S_IFREG|0644, st_size=37, ...}) = 0
670   brk(0x8021000)                    = 0x8021000
670   read(4, "order hosts,bind\nmulti on\nnosp"..., 4096) = 37
670   open("/etc/resolv.conf", O_RDONLY) = 5
670   fstat(5, {st_mode=S_IFREG|0644, st_size=39, ...}) = 0
670   brk(0x8022000)                    = 0x8022000
670   read(5, "nameserver 127.0.0.1\nsearch net"..., 4096) = 39
670   read(5, "", 4096)                 = 0
670   close(5)                          = 0
670   read(4, "", 4096)                 = 0
670   close(4)                          = 0
670   uname({sys="Linux", node="syntropy", ...}) = 0
670   open("/etc/hosts", O_RDONLY)      = 4
670   fstat(4, {st_mode=S_IFREG|0644, st_size=420, ...}) = 0
670   read(4, "127.0.0.1\t\t\tlocalhost\n198.69"..., 4096) = 420
670   read(4, "", 4096)                 = 0
670   close(4)                          = 0
670   fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 2), ...}) = 0
670   ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
670   write(1, "DIP: Dialup IP Protocol Driver v"..., 61) = 61
670   write(1, "Written by Fred N. van Kempen, M"..., 55) = 55
670   open("/var/run/dip.pid", O_RDONLY) = 4
670   fstat(4, {st_mode=S_IFREG|0644, st_size=3, ...}) = 0
670   read(4, "573", 4096)              = 3
670   read(4, "", 4096)                 = 0
670   getuid()                          = 101
670   setreuid(65535, 101)              = 0
670   kill(573, SIGTERM)                = 0
670   write(1, "DIP: process 573 killed.\n", 25) = 25
670   setreuid(65535, 0)                = -1 EPERM (Operation not permitted)
670   close(4)                          = 0
670   unlink("/var/run/dip.pid")        = -1 EACCES (Permission denied)
670   _exit(0)                          = ?

The line "unlink("/var/run/dip.pid")" isn't working as that file still
exists and I have to delete it manually or let minicom override the
stale lockfile.  Even so, the modem is still connected to my provider
and I need to tell it to hang up :(

$ ls -l /usr/sbin/dip
-rwsr-x---   1 root     dip         79004 Mar 19 05:50 /usr/sbin/dip
$ groups
cjf dialout fax floppy dip src staff

--
Christopher J. Fearnley            |    Linux/Internet Consulting
cjf@netaxs.com                     |    UNIX SIG Leader at PACS
http://www.netaxs.com/~cjf         |    (Philadelphia Area Computer Society)
ftp://ftp.netaxs.com/people/cjf    |    Design Science Revolutionary
"Dare to be Naive" -- Bucky Fuller |    Explorer in Universe


Reply to: