From: dgaudet Date: Fri, 27 Jun 1997 02:31:14 +0000 (+0000) Subject: Report shmget error on linux with more verbosity. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5fda2b8787dc4e2b7c38b6048198a8b9b7c53af;p=thirdparty%2Fapache%2Fhttpd.git Report shmget error on linux with more verbosity. Reviewed by: Submitted by: Obtained from: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78390 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/APACHE_1_2_X/src/main/http_main.c b/APACHE_1_2_X/src/main/http_main.c index 642d037cd00..443ebc23647 100644 --- a/APACHE_1_2_X/src/main/http_main.c +++ b/APACHE_1_2_X/src/main/http_main.c @@ -725,6 +725,13 @@ static void setup_shared_mem(void) 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);