From: Rus Foster (rghf_at_fsck.me.uk)
Date: Wed 03 Sep 2003 - 13:58:28 BST
> make an strace of the named process, and let
> us have a look at the 'relevant' parts ...
>
> best,
> Herbert
>
Hi,
The relavant snippit is
rt_sigaction(SIGPIPE, {0x80814d8, [HUP INT ILL USR1 USR2 PIPE TERM CHLD
XFSZ WINCH], 0x4000000}, NULL, 8) = 0
ioctl(4, 0x8913, 0xbffffbbc) = 0
ioctl(4, 0x891b, 0xbffffbbc) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
fcntl64(6, F_DUPFD, 20) = 22
close(6) = 0
fcntl64(22, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(22, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl64(22, F_SETFD, FD_CLOEXEC) = 0
setsockopt(22, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
getsockopt(22, SOL_SOCKET, SO_RCVBUF, [65535], [4]) = 0
setsockopt(22, SOL_SOCKET, SO_SNDBUF, [49152], 4) = 0
setsockopt(22, SOL_SOCKET, SO_BSDCOMPAT, [1], 4) = 0
bind(22, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("216.17.101.202")}}, 16) = 0
fcntl64(22, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6
fcntl64(6, F_DUPFD, 20) = 23
close(6) = 0
fcntl64(23, F_SETFD, FD_CLOEXEC) = 0
setsockopt(23, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(23, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("216.17.101.202")}}, 16) = -1 EADDRINUSE (Addre
ss already in use)
close(23) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {0x80814e0, [HUP INT ILL USR1 USR2 PIPE TERM
CHLD XF
SZ WINCH], 0x4000000}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({30, 0}, {30, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6
fcntl64(6, F_DUPFD, 20) = 23
close(6) = 0
fcntl64(23, F_SETFD, FD_CLOEXEC) = 0
setsockopt(23, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(23, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("216.17.101.202")}}, 16) = -1 EADDRINUSE (Addre
ss already in use)
close(23) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {0x80814e0, [HUP INT ILL USR1 USR2 PIPE TERM
CHLD XFSZ WINCH], 0x4000000}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({30, 0}, {30, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6
fcntl64(6, F_DUPFD, 20) = 23
close(6) = 0
fcntl64(23, F_SETFD, FD_CLOEXEC) = 0
setsockopt(23, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(23, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("216.17.101.202")}}, 16) = -1 EADDRINUSE (Addre
ss already in use)
close(23) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {0x80814e0, [HUP INT ILL USR1 USR2 PIPE TERM
CHLD XFSZ WINCH], 0x4000000}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({30, 0}, {30, 0}) = 0
I've put the full trace at http://www.jvds.com/~rghf/bind.trace
Rgds
Rus
-- w: http://www.jvds.com | Linux + FreeBSD Servers from $15/mo e: rghf_at_jvds.com | Totally Customizable Technology t: +447919 373537 | Forums t: 1-888-327-6330 | http://forums.jvds.com