ソースを参照

Simplify inotify cleanup

master
Bert Münnich 7年前
コミット
6695cd4c34
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      autoreload_inotify.c

+ 2
- 2
autoreload_inotify.c ファイルの表示

@@ -27,8 +27,8 @@

CLEANUP void arl_cleanup(arl_t *arl)
{
if (arl->fd != -1 && arl->wd != -1)
inotify_rm_watch(arl->fd, arl->wd);
if (arl->fd != -1)
close(arl->fd);
}

static void arl_setup_dir(arl_t *arl, const char *filepath)


読み込み中…
キャンセル
保存