reaper.c

ds2.1.1/lib/daemon/reaper.c · 396 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

/*
 * Seeks dummy items without an environment and destroys them.
 * Hackey workaround to sloppy code I'm still tracking down.
 * -Crat 21Jan06
 */

#include <lib.h>

inherit LIB_DAEMON;

static void eventReap() {

    call_out((: eventReap :), 300);

    reap_dummies();
    reap_other();
}

static void create() {
    daemon::create();
    SetNoClean(1);
    call_out((: eventReap :), 300);
}

Site Stats

Snippets: 1791
Codebases: 571