Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Semaphore or Shared Memory Support #2367

Open
probstcj opened this issue Mar 19, 2024 · 0 comments
Open

No Semaphore or Shared Memory Support #2367

probstcj opened this issue Mar 19, 2024 · 0 comments

Comments

@probstcj
Copy link

probstcj commented Mar 19, 2024

While working with C programming, I tried using the following code:
// Create semaphore
semaphoreID = semget(SEM_KEY, 1, 0666 | IPC_CREAT);
batherSemID = semget(BATHER_SEM_KEY, 1, 0666 | IPC_CREAT);
spinWaitID = semget(SPINWAIT_SEM_KEY,1, 0666 | IPC_CREAT);
if(semaphoreID < 0 || batherSemID < 0){
(ENABLE_DEBUG)?(fprintf(stderr, "Semaphore error... Exiting\n")):(false);
exit(0);
}

This compiles and runs, but ends up stopping at the semaphore error and exiting (the semaphores are returning -1 meaning they failed to create)

Running ipcs returns the following output:

localhost:~# ipcs

kernel not configured for message queues

kernel not configured for shared memory

kernel not configured for semaphores

Opening this issue to see if there is any plan on future support for semaphores and shared memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant