From: Rod Armstrong (rod_at_san-jose.tt.slb.com)
Date: Tue May 21 2002 - 20:22:45 BST
I forgot to add that one can follow the child using just one instance of ups if you want: 1. ups parent & The parent code did this: if((child_pid = vfork()) == FALSE) { /* this is the child */ .... } else { /* this is the parent */ kill(child_pid, 23); <<< insert this breakpoint code. 23 is SIGSTOP printf("child pid is %d\n", child_pid); << breakpoint code to get pid .... } #stop; <<<<<<<<< stop here to follow the child 2. At the #stop, edit the target name to the child name, press RET. 3. Attach to the <pid>. 4. From an xterm, continue the child: kill -CONT <pid> 5. In ups, put a break on main() or whatever, and continue. Rod
This archive was generated by hypermail 2.1.4 : Thu May 23 2002 - 15:54:15 BST