Skip to content

Commit ffbfd48

Browse files
committed
Fix by @wahjava for sem_open call on FreeBSD. Closes #3677.
1 parent 5c6a613 commit ffbfd48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

machine/logger.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,11 @@ namespace rubinius {
395395
#define LOGGER_FROM_FLAGS (O_RDONLY | O_CLOEXEC)
396396
#define LOGGER_TO_FLAGS (O_CREAT | O_TRUNC | O_APPEND | O_WRONLY | O_CLOEXEC)
397397

398+
#ifdef __FreeBSD__
399+
#define LOGGER_SEM_OPEN_FLAGS (O_CREAT)
400+
#else
398401
#define LOGGER_SEM_OPEN_FLAGS (O_CREAT | O_RDWR)
402+
#endif
399403
#define LOGGER_SEM_OPEN_PERMS (S_IRUSR | S_IWUSR)
400404

401405
#define LOGGER_SHM_OPEN_FLAGS (O_CREAT | O_RDWR)

0 commit comments

Comments
 (0)