2 ms·
An assert is what a programmer uses when they think something won't/can't ever happen. So the authors did not realise inotify could legitimately return an erro
by willvarfar 12y ago
An assert is what a programmer uses when they think something won't/can't ever happen.
So the authors did not realise inotify could legitimately return an error.
If they'd thought it could return an error, they'd return the error code themselves or recover gracefully or whatever.