[lkml]   [2001]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Fork vs GDB
Julien Laganier <Julien.Laganier@Sun.COM> writes:

> Greetings,
> Does anyone knows how to debug a program which fork. It seems that gdb
> doesn't allow us to debug the child processes without calling 'sleep' in
> the child, and attach it to gdb (Except on HP-UX, but I choose to use
> Linux ;-)) ?
> Tnx.


I had this question awhile back. Your solution with sleep is the only
option, unless you wish to add support for another method.

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

 \ /
  Last update: 2005-03-22 12:55    [W:0.043 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site