}
#endif /* DEBUGGING */
- /* SIGCLD */
+ /* SIGCHLD */
action.sa_handler = child_handler;
#ifdef SA_NOCLDWAIT
/* this enhancement simplifies things for Solaris, it also improves performance */
action.sa_flags |= SA_NOCLDWAIT;
#endif
- if (sigaction(SIGCLD, &action, NULL) < 0 ) {
+ if (sigaction(SIGCHLD, &action, NULL) < 0 ) {
LOG(log_error, logtype_afpd, "afp_over_dsi: sigaction: %s", strerror(errno) );
afp_dsi_die(EXITERR_SYS);
}
int flag = 1;
setsockopt(dsi->socket, SOL_TCP, TCP_NODELAY, &flag, sizeof(flag));
+#ifdef HAVE_TRACKER
/* Initialize Spotlight */
- if ((obj->options.flags & OPTION_SPOTLIGHT) && (obj->options.slmod_path))
- sl_mod_load(obj);
+ if (obj->options.flags & OPTION_SPOTLIGHT) {
+ spotlight_init(obj);
+ }
+#endif
ipc_child_state(obj, DSI_RUNNING);