*** src/bin/ipcclean/ipcclean.sh.old Sun Sep 23 15:05:55 2001 --- src/bin/ipcclean/ipcclean.sh Sun Sep 23 15:13:48 2001 *************** *** 74,87 **** # (This check is conceptually phony, but it's # useful anyway in practice.) ps hj $ipcs_cpid $ipcs_lpid >/dev/null 2>&1 ! if [ $? -eq 0 ]; then echo "skipped; process still exists (pid $ipcs_cpid or $ipcs_lpid)." continue fi # try remove ipcrm shm $ipcs_shmid ! if [ $? -eq 0 ]; then did_anything=t else exit --- 74,87 ---- # (This check is conceptually phony, but it's # useful anyway in practice.) ps hj $ipcs_cpid $ipcs_lpid >/dev/null 2>&1 ! if [ "$?" -eq 0 ]; then echo "skipped; process still exists (pid $ipcs_cpid or $ipcs_lpid)." continue fi # try remove ipcrm shm $ipcs_shmid ! if [ "$?" -eq 0 ]; then did_anything=t else exit *************** *** 93,99 **** echo -n "Semaphore $val ... " # try remove ipcrm sem $val ! if [ $? -eq 0 ]; then did_anything=t else exit --- 93,99 ---- echo -n "Semaphore $val ... " # try remove ipcrm sem $val ! if [ "$?" -eq 0 ]; then did_anything=t else exit