1

I ran sudo lsof -p $(pidof foo) and I got a lot of these. Does anyone know what these represent? I know they come from the process but there are no ports / IP addresses.

COMMAND    PID USER   FD      TYPE             DEVICE  SIZE/OFF      NODE NAME
foo   115450 root  592u     sock                0,7       0t0 957442022 protocol: TCP
foo   115450 root  593u     sock                0,7       0t0 956964126 protocol: TCP
foo   115450 root  594u     sock                0,7       0t0 957091053 protocol: TCP
foo   115450 root  595u     sock                0,7       0t0 957498237 protocol: TCP
foo   115450 root  596u     sock                0,7       0t0 957077603 protocol: TCP
foo   115450 root  597u     sock                0,7       0t0 957211699 protocol: TCP
  • 3
    Your application has created a socket (perhaps via socket(2)) in the TCP domain, but not bound it to any port (eg via connect(2) or listen(2) or bind(2)). – Stephen Harris Nov 19 '18 at 23:41
  • @StephenHarris thank you. What about connecting to HTTP? It should still follow the normal connect/listen/bind flow, shouldn't? – CppLearner Nov 21 '18 at 18:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.