diff options
author | Milan Jurik <Milan.Jurik@Sun.COM> | 2010-07-13 16:03:31 +0100 |
---|---|---|
committer | Milan Jurik <Milan.Jurik@Sun.COM> | 2010-07-13 16:03:31 +0100 |
commit | dd3d4b51b900954355940eb01a31d9b66535adab (patch) | |
tree | 069273ccdec38ce445cbb1b943f80de2eb8da531 /usr/src/cmd | |
parent | 9ea001878dbd7652840a0b67b9bb4893940ea848 (diff) | |
download | illumos-gate-dd3d4b51b900954355940eb01a31d9b66535adab.tar.gz |
6964278 per-user nscd: main nscd daemon keeps FD open for a door to a per-user nscd, after that has ended
Diffstat (limited to 'usr/src/cmd')
-rw-r--r-- | usr/src/cmd/nscd/nscd_selfcred.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/cmd/nscd/nscd_selfcred.c b/usr/src/cmd/nscd/nscd_selfcred.c index 92a7330270..b5ebda937e 100644 --- a/usr/src/cmd/nscd/nscd_selfcred.c +++ b/usr/src/cmd/nscd/nscd_selfcred.c @@ -20,8 +20,7 @@ */ /* - * Copyright 2010 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. */ #include <stdio.h> @@ -407,6 +406,9 @@ selfcred_pulse( ret = _nscd_doorcall_fd(fd, NSCD_PULSE |(_whoami & NSCD_WHOAMI), NULL, 0, NULL, 0, NULL); + /* Close door because the other side exited. */ + (void) close(fd); + _NSCD_LOG(NSCD_LOG_SELF_CRED, NSCD_LOG_LEVEL_DEBUG) (me, "door (%d) monitor exited (rc = %d)\n", fd, ret); |