[Info-vax] Problem with sem_open() call
Eberhard Heuser
eberhard.heuser at chemie.uni-konstanz.de
Wed Sep 21 06:43:45 EDT 2016
Am 21.09.2016 um 12:04 schrieb Alexander Saprykin via Info-vax:
> #include <semaphore.h>
> #include <stdio.h>
> #include <errno.h>
>
> int main ()
> {
> int rc;
>
> rc = sem_unlink ("/mysemaphore");
>
> if (rc != 0)
> printf ("[FAIL] Error code: %d\n", errno);
> else
> printf ("[OK] Semaphore unlinked\n");
>
> return 0;
> }
$ r sem_create
[OK] Semaphore created
$ r sem_open
[FAIL] Error code: 2
$ r sem_remove
[OK] Semaphore unlinked
OVMS V8.4-1H1 ; VSI C V7.4-001
Eberhard
More information about the Info-vax
mailing list