Print this page
OS-5223 removed shm segment is no longer available
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
        
*** 19,28 ****
--- 19,29 ----
   * CDDL HEADER END
   */
  /*
   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   * Use is subject to license terms.
+  * Copyright 2016 Joyent, Inc.
   */
  
  #include <mdb/mdb_modapi.h>
  #include <mdb/mdb_ks.h>
  
*** 227,237 ****
          printtime_nice("atime: ", shmid->shm_atime);
          printtime_nice("dtime: ", shmid->shm_dtime);
          printtime_nice("ctime: ", shmid->shm_ctime);
          mdb_printf("sptinfo: %-?p    sptseg: %-?p\n",
              shmid->shm_sptinfo, shmid->shm_sptseg);
!         mdb_printf("sptprot: <%lb>\n", shmid->shm_sptprot, prot_flag_bits);
  }
  
  
  /*ARGSUSED1*/
  static void
--- 228,240 ----
          printtime_nice("atime: ", shmid->shm_atime);
          printtime_nice("dtime: ", shmid->shm_dtime);
          printtime_nice("ctime: ", shmid->shm_ctime);
          mdb_printf("sptinfo: %-?p    sptseg: %-?p\n",
              shmid->shm_sptinfo, shmid->shm_sptseg);
!         mdb_printf("opts: rmpend: %d prot: <%b>\n",
!             ((shmid->shm_opts & SHM_RM_PENDING) != 0),
!             (shmid->shm_opts & SHM_PROT_MASK), prot_flag_bits);
  }
  
  
  /*ARGSUSED1*/
  static void