diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-22 14:20:19 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-07-03 10:41:57 +0300 |
commit | bd401f0568e6905bc051763ff8342d11c17bf032 (patch) | |
tree | 04b672d087ee37129a387a9635bd0ab71d85415f /usr/src/lib/libdiskmgt/common/inuse_mnt.c | |
parent | 5cc5d5cece01c2151c34ac6d97b0bd369aded9ed (diff) | |
download | illumos-gate-bd401f0568e6905bc051763ff8342d11c17bf032.tar.gz |
11159 libdiskmgt: NULL pointer errors
Reviewed by: John Levon <john.levon@joyent.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/lib/libdiskmgt/common/inuse_mnt.c')
-rw-r--r-- | usr/src/lib/libdiskmgt/common/inuse_mnt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/lib/libdiskmgt/common/inuse_mnt.c b/usr/src/lib/libdiskmgt/common/inuse_mnt.c index 7923dcfa99..a0c921c9a7 100644 --- a/usr/src/lib/libdiskmgt/common/inuse_mnt.c +++ b/usr/src/lib/libdiskmgt/common/inuse_mnt.c @@ -23,8 +23,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * Creates and maintains a cache of mount points. */ @@ -91,7 +89,7 @@ inuse_mnt(char *slice, nvlist_t *attrs, int *errp) if (*errp == 0) { /* start a thread to monitor the mnttab */ - *errp = thr_create(NULL, NULL, (void *(*)(void *))watch_mnttab, + *errp = thr_create(NULL, 0, (void *(*)(void *))watch_mnttab, NULL, THR_NEW_LWP | THR_DAEMON, &mnttab_thread); } |