Print this page
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

@@ -24,10 +24,11 @@
  * Use is subject to license terms.
  */
 /*
  * Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
  * Copyright (c) 2013, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2013 by Delphix. All rights reserved.
  */
 
 #define _STRUCTURED_PROC        1
 
 #include <stdlib.h>

@@ -1355,15 +1356,15 @@
 
                 free(cp);
         }
 
         {
-                prpriv_t *ppriv;
+                prpriv_t *ppriv = NULL;
                 const priv_impl_info_t *pinfo;
                 size_t pprivsz, pinfosz;
 
-                if ((ppriv = proc_get_priv(P->pid)) == NULL)
+                if (Ppriv(P, &ppriv) == -1)
                         goto err;
                 pprivsz = PRIV_PRPRIV_SIZE(ppriv);
 
                 if (write_note(fd, NT_PRPRIV, ppriv, pprivsz, &doff) != 0) {
                         free(ppriv);