shmget: Make shmobj underwent IPC_RMID invisible to shmget

Refs: #926
Change-Id: I16120623b581da5d5d484fd05d5111788c8ad5e2
This commit is contained in:
Tomoki Shirasawa
2018-06-11 11:40:48 +09:00
committed by Masamichi Takagi
parent 229b041320
commit 9bb8076dc0
7 changed files with 170 additions and 15 deletions

27
test/issues/926/C926.sh Normal file
View File

@ -0,0 +1,27 @@
#!/bin/sh
BIN=
SBIN=
BOOTPARAM="-c 1-7 -m 2G@0"
if [ -f ../../../config.h ]; then
str=`grep "^#define BINDIR " ../../../config.h | head -1 | sed 's/^#define BINDIR /BINDIR=/'`
eval $str
fi
if [ -f ../../../Makefile ]; then
str=`grep ^SBINDIR ../../../Makefile | head -1 | sed 's/ //g'`
eval $str
fi
if [ "x$BINDIR" = x ];then
BINDIR="$BIN"
fi
if [ "x$SBINDIR" = x ];then
SBINDIR="$SBIN"
fi
if ! lsmod | grep mcctrl > /dev/null 2>&1; then
$SBINDIR/mcreboot.sh $BOOTPARAM
fi
$BINDIR/mcexec ./C926