Skip to content

Commit

Permalink
Fixed setting FSEvent handle on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Mar 30, 2016
1 parent e57cf32 commit 78013da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion machine/builtin/fsevent.cpp
Expand Up @@ -80,7 +80,8 @@ namespace rubinius {
FSEvent* FSEvent::create(STATE) {
FSEvent* fsevent = state->memory()->new_object_pinned<FSEvent>(state, G(fsevent));
fsevent->watch_set(false);
if((fsevent->in() = inotify_init()) < 0) {
fsevent->in(inotify_init());
if(fsevent->in() < 0) {
logger::error("%s: unable to create inotify", strerror(errno));
} else {
state->memory()->needs_finalization(state, fsevent,
Expand Down

0 comments on commit 78013da

Please sign in to comment.