aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2017-03-30 17:47:58 -0700
committerPaul Eggert2017-03-30 17:48:20 -0700
commit7a8ae233d1bdf538a99233e52f0d7dd0975df2d1 (patch)
tree8a8e71610e7addd682df62547e6d6be7b7d21dda /src
parent43203708d41e54b860f9bd987f1af3c4ca38a46a (diff)
downloademacs-7a8ae233d1bdf538a99233e52f0d7dd0975df2d1.tar.gz
emacs-7a8ae233d1bdf538a99233e52f0d7dd0975df2d1.zip
* src/inotify.c (add_watch): Add comment.
Diffstat (limited to 'src')
-rw-r--r--src/inotify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inotify.c b/src/inotify.c
index a0a89aa0f41..290701349ef 100644
--- a/src/inotify.c
+++ b/src/inotify.c
@@ -227,6 +227,9 @@ add_watch (int wd, Lisp_Object filename,
227 emacs_abort (); 227 emacs_abort ();
228 } 228 }
229 229
230 /* Insert the newly-assigned ID into the previously-discovered gap,
231 which is possibly at the end of the list. Inserting it there
232 keeps the list sorted. */
230 watch_id = make_number (id); 233 watch_id = make_number (id);
231 watch = list4 (watch_id, filename, callback, mask); 234 watch = list4 (watch_id, filename, callback, mask);
232 XSETCDR (tail, Fcons (watch, XCDR (tail))); 235 XSETCDR (tail, Fcons (watch, XCDR (tail)));