Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
5996 libtopo ses module unload takes too long
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Dan McDonald <danmcd@omniti.com>
  • Loading branch information
Hans Rosenfeld authored and Dan McDonald committed Jun 19, 2015
1 parent 3f2b8a5 commit 057c620
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/src/lib/fm/topo/modules/common/ses/ses.c
Expand Up @@ -22,6 +22,7 @@
/*
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2012 Milan Jurik. All rights reserved.
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
*/

#include <alloca.h>
Expand Down Expand Up @@ -452,12 +453,15 @@ ses_contract_thread(void *arg)
ctid_t ctid;
struct pollfd fds;
int pollret;
sigset_t sigset;

ses_ct_print("start contract event thread");
efd = open64(CTFS_ROOT "/device/pbundle", O_RDONLY);
fds.fd = efd;
fds.events = POLLIN;
fds.revents = 0;
sigaddset(&sigset, sesthread.thr_sig);
pthread_sigmask(SIG_UNBLOCK, &sigset, NULL);
for (;;) {
/* check if we've been asked to exit */
(void) pthread_mutex_lock(&sesthread.mt);
Expand Down

0 comments on commit 057c620

Please sign in to comment.