New post_crash_dump_hook

Run it from crash_dump().  Useful to move core files out of the way,
alert deities by e-mail, and so forth.
This commit is contained in:
Markus Armbruster 2008-04-25 22:12:22 +02:00
parent dd0737f8e7
commit f63401329d
5 changed files with 7 additions and 2 deletions

View file

@ -340,6 +340,7 @@ crash_dump(void)
return;
}
}
run_hook(post_crash_dump_hook, "post-crash-dump");
logerror("Crash dump complete");
#endif
}

View file

@ -63,7 +63,6 @@ static empth_t *update_thread;
static int update_get_schedule(void);
static void update_sched(void *);
static void update_run(void);
static int run_hook(char *cmd, char *name);
void
update_init(void)
@ -218,7 +217,7 @@ update_run(void)
empth_rwlock_unlock(play_lock);
}
static int
int
run_hook(char *cmd, char *name)
{
int status;