#include "hd.h" /* note that must not allocate any signals here as they may conflict */ /* with signals for the interrupt handler or for the message port which */ /* allocated the signals in a different task (naughty arnt I!) */ void subprocess () { struct Message *msg; while ( 1 ) { while ( msg = GetMsg ( port ) ) { perform_io ( msg ); } WaitPort ( port ); } }