Commit 39b61591 authored by dgaudet's avatar dgaudet
Browse files

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
parent 74c5d106
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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);