ddd
[Top][All Lists]
Advanced

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

how to debug socket child process with bind function inside?


From: Dan Yu Liu
Subject: how to debug socket child process with bind function inside?
Date: Tue, 18 Jun 2002 20:59:05 -0500 (CDT)

hello all:
 i met a program to debug socket child process with bind function.
I knew the method to debug a child process using DDD.
but when i use the same method to debug the socket child process.
i met the binding problem, because socket program cannot bind one port
twice.
the method i used like this:
first open DDD twice $>ddd program1 & ddd program1
then find the pid number returned by fork function
and use DDD command attach to process!
but it was fail, the reason is the parent program already use the
bind function to the PORT, the child program cannot bind the PORT again!


what should I do?

Thank you very much!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]