next up previous contents
Next: A Modifying DD Up: Example Programs Previous: A DD Consumer

A Monitor Process

The following sample program is a that stays alive as long as the DD system exists.

#include <dd_user.h>

 
main()

{

ddu_attach();

while ( ddu_attached() ) {

/* monitor something */

}

printf(``DD system disappeared \n'');

ddu_detach();

}



Online software development
Thu Mar 14 10:35:53 EST 1996