semget: Initialization failed. errno 22
/usr/src/linux/include/linux/sem.h
파일에 다음 변수들이 들어 있습니다.
#define SEMMNI 128 /* ? max # of semaphore identifiers */ #define SEMMSL 32 /* <= 512 max num of semaphores per id */이 값들을 다음과 같이 올려 줄 수 있습니다.
#define SEMMSL 64 /* <= 512 max num of semaphores per id */이렇게 해 준 다음에 새로운 커넬을 컴파일해 줍니다.(make clean 하십시오) semaphores 를 사용하는 프로그램들이 하나도 없을 때 이것이 동작합니다.
이 방법은 1.2.13과 2.0 버전 등의 커넬에서 모두 동작합니다.