- char *hook; /* hook program from context */
- pid_t pid; /* ID of child process */
- int status; /* exit or other child process status */
- char *vec[4]; /* argument vector for child process */
-
- static int did_message = 0; /* set if we've already output a message */
-
- if ((hook = context_find(hook_name)) == (char *)0)
- return (OK);
-
- switch (pid = vfork()) {
- case -1:
- status = NOTOK;
- advise(NULL, "external database may be out-of-date.");
- break;