Merge lp:~jamesodhunt/libnih/inotify-overflow-fix into lp:libnih/1.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~jamesodhunt/libnih/inotify-overflow-fix |
Merge into: | lp:libnih/1.0 |
Diff against target: |
41 lines (+16/-0) 2 files modified
ChangeLog (+8/-0) nih/watch.c (+8/-0) |
To merge this branch: | bzr merge lp:~jamesodhunt/libnih/inotify-overflow-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott James Remnant (Canonical) | Pending | ||
Review via email: mp+59094@code.launchpad.net |
Description of the change
* nih/watch.c: nih_watch_reader(): Handle situation where kernel
is generating events faster than can be consumed by simply
ignoring them. Failure to do so results in an assertion failure in
nih_watch_
contain an invalid watch descriptor (-1).
Note that running the shell script below will cause Upstart to crash (generally within 60 seconds with a reasonable system) as a result of this bug:
while [ : ]
do
touch /etc/init/*
done
Unmerged revisions
- 1049. By James Hunt
-
* nih/watch.c: nih_watch_reader(): Handle situation where kernel
is generating events faster than can be consumed by simply
ignoring them. Failure to do so results in an assertion failure in
nih_watch_handle_ by_wd() since the inotify_event object will
contain an invalid watch descriptor (-1).