Re: fork()

Ramana Radhakrishnan
2005-03-31T09:41:38Z

Russell Shaw wrote:
> Siddharth Choudhary Kode wrote:
>
>> Check the info doc, sec. 4.10. This is only supported on GNU/Linux
>> 2.5.60+ and HP-UX 11.x+. If your platform doesn't support it, the
>> best option is to insert a sleep() statement at the beginning of your
>> child code and then have a new gdb session attach to the child process
>> before the sleep expires.
>
>
> Hi,
> I'm using 2.6.10 on debian sid.
>
>> On Thu, 31 Mar 2005, Russell Shaw wrote:
>>
>>> Hi,
>>>
>>> I was debugging a program with gdb-6.3 and did: set follow-fork-mode
>>> child
>>>
>>> but fork() still returns the PID meaning that it is still following
>>> the parent.

Can you show the context in which you are getting this ?

>>>
>>

--
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)