[lkml]   [1999]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectbind/connect: correct behaviour?
while investigating why some LPRng hang when there's no spooler
running I stumbled over the following strace. Note: before the
bind, there's nobody listening on local port 515 and there
are no socket relevant syscalls between the bind and connect:

1054 bind(5, {sin_family=AF_INET,
sin_addr=inet_addr("")}, 16) = 0
1054 connect(5, {sin_family=AF_INET,
sin_addr=inet_addr("")}, 16) = 0

Obviously the process has just connected to itself
on port 515 - though it never did an accept(). Is this to be expected?
This is with kernel 2.2.1.

Cheers, Roderich

"Report all obscene mail to your Potsmaster"

Roderich Schupp
ExperTeam GmbH
Munich, Germany linux:2.2.1

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:50    [W:0.035 / U:3.540 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site