dgaudet 97/06/26 19:31:16
Modified: src Tag: APACHE_1_2_X http_main.c
Log:
Report shmget error on linux with more verbosity.
Revision Changes Path
No revision
No revision
1.149.2.3 +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.149.2.2
retrieving revision 1.149.2.3
diff -C3 -r1.149.2.2 -r1.149.2.3
*** http_main.c 1997/06/27 01:51:49 1.149.2.2
--- http_main.c 1997/06/27 02:31:14 1.149.2.3
***************
*** 725,730 ****
--- 725,737 ----
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);