T(shmctl(shmid, IPC_STAT, &shmid_ds));
EQ((int)shmid_ds.shm_nattch, 1, "got %d, want %d");
EQ(shmid_ds.shm_lpid, getpid(), "got %d, want %d");
if (shmid_ds.shm_atime < t)
T(shmctl(shmid, IPC_STAT, &shmid_ds));
EQ((int)shmid_ds.shm_nattch, 1, "got %d, want %d");
EQ(shmid_ds.shm_lpid, getpid(), "got %d, want %d");
if (shmid_ds.shm_atime < t)