This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
how to wait for a process to run
- From: Hua Ying Ling <hyling at nc dot rr dot com>
- To: gdb at sources dot redhat dot com
- Date: Tue, 25 Nov 2003 18:36:17 -0500
- Subject: how to wait for a process to run
Hi,
I'm trying to find a better way to debug a demon that I can' t run
directly. Currently I'm inserting sleep() at the beginning of the
program to give me enough time to attach to the process. Is there a
better way to do this?
Thanks
~Hua Ying