dgaudet 97/06/20 14:56:47
Modified: src http_main.c Log: Be more verbose with the Linux shmget error. Reviewed by: Randy Revision Changes Path 1.155 +7 -0 apache/src/http_main.c Index: http_main.c =================================================================== RCS file: /export/home/cvs/apache/src/http_main.c,v retrieving revision 1.154 retrieving revision 1.155 diff -C3 -r1.154 -r1.155 *** http_main.c 1997/06/16 20:04:52 1.154 --- http_main.c 1997/06/20 21:56:46 1.155 *************** *** 843,848 **** --- 843,855 ---- if ((shmid = shmget(shmkey, SCOREBOARD_SIZE, IPC_CREAT|SHM_R|SHM_W)) == -1) { + #ifdef LINUX + if (errno == ENOSYS) { + fprintf(stderr, + "httpd: Your kernel was built without CONFIG_SYSVIPC\n" + "httpd: please consult the Apache FAQ for details\n"); + } + #endif perror("shmget"); fprintf(stderr, "httpd: Could not call shmget\n"); exit(1);