This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]