Embedded cygwin cygserver guide for IPC syscall - JohnHau/mis GitHub Wiki
/usr/bin/cygserver-config
The XSI IPC functions semctl, semget, semop, shmat, shmctl, shmdt, shmget, msgctl, msgget, msgrcv and msgsnd are only available when cygserver is running.
so run the cygserver. It belongs to the Cygwin package
$ cygcheck -l cygwin | grep server /etc/defaults/etc/cygserver.conf /usr/bin/cygserver-config /usr/sbin/cygserver.exe /usr/share/doc/Cygwin/cygserver.README
Use cygserver-config to install the service. After you can verify and start the service with:
$ cygrunsrv -Q cygserver Service : cygserver Display name : CYGWIN cygserver Current State : Stopped Command : /usr/sbin/cygserver
$ cygrunsrv -S cygserver
$ cygrunsrv -Q cygserver Service : cygserver Display name : CYGWIN cygserver Current State : Running Controls Accepted : Stop Command : /usr/sbin/cygserver
hmm maybe I never started the service, i ran the codog file and set export CYGWIN=server. Whats the command to start the service? – Krx421 Oct 30, 2020 at 21:58 sorry config file – Krx421 Oct 30, 2020 at 22:10 Thank you. I have confirmed the server is running, I now get invalid argument error on call mutex=semget(IPC_PRIVATE,0,IPC_CREAT)). But this soultion seems to have fixed my ability to use the function. – Krx421 Oct 31, 2020 at 18:21 why 0 ? see pubs.opengroup.org/onlinepubs/009695399/functions/semget.html – matzeri Oct 31, 2020 at 18:55
https://copyprogramming.com/howto/msgget-no-such-file-or-directory-found