httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Tromey <tro...@creche.cygnus.com>
Subject Re: inetd fix
Date Mon, 10 Jun 1996 15:26:36 GMT
>> As an aside, how did you debug this? How do I get an inetd configured
>> server into the debugger?

Alexei> I wish I knew; would have made my life easier.

My standard trick for debugging such programs is to put a sigsuspend()
or the moral equivalent at the beginning of main().  Then I attach to
the running process with gdb.  The attach causes the sigsuspend() to
return.

"attach" isn't universally available, so YMMV.

Tom
-- 
tromey@cygnus.com                 Member, League for Programming Freedom

Mime
View raw message