Skip to content

Commit

Permalink
OS-2359 svc.startd dies in utmpx_postfork()
Browse files Browse the repository at this point in the history
  • Loading branch information
bcantrill committed Jul 8, 2013
1 parent 74eb31f commit e69eeac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion usr/src/cmd/svc/startd/startd.c
Expand Up @@ -901,6 +901,11 @@ startup(void)
log_framework(LOG_DEBUG, "Existing configd contract %ld; not "
"starting svc.configd\n", configd_ctid);

/*
* Call utmpx_init() before creating the fork_configd() thread.
*/
utmpx_init();

(void) startd_thread_create(fork_configd_thread, (void *)configd_ctid);

/*
Expand All @@ -916,7 +921,6 @@ startup(void)
}
MUTEX_UNLOCK(&st->st_configd_live_lock);

utmpx_init();
wait_init();

if (read_startd_config())
Expand Down

0 comments on commit e69eeac

Please sign in to comment.