#include <exec/memory.h>
#include <workbench/startup.h>
#include <workbench/workbench.h>

struct MsgPort *rport, *CreatePort();
struct WBStartup *startup, *GetMsg();

main()
{
	if(!(rport = CreatePort("Workbench.Cleanup", 0))) {
		printf("Can't create Workbench.Cleanup port.\n");
		exit(20);
	}
	while(1) {
		WaitPort(rport);
		startup = GetMsg(rport);
		FreeStartup(startup);
	}
}
