From b5fda2b8787dc4e2b7c38b6048198a8b9b7c53af Mon Sep 17 00:00:00 2001 From: dgaudet Date: Fri, 27 Jun 1997 02:31:14 +0000 Subject: [PATCH] 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 --- APACHE_1_2_X/src/main/http_main.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.47.2