Mictronics / readsb-protobuf

Readsb is a Mode-S/ADSB/TIS decoder for RTLSDR, BladeRF, Modes-Beast and GNS5894 devices. Future development version with protocol buffer storage.
Other
86 stars 24 forks source link

gracefully fail when the semaphore can't be created #11

Closed wiedehopf closed 3 years ago

wiedehopf commented 3 years ago

sem_open failure detection didn't work for me comparing against -1 According to man page: On error, sem_open() returns SEM_FAILED, with errno set to indicate the error. Detecting failure like that works for me.