mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Reduce the number of simultaneous inotify events
There is no point in having a buffer capable of 512 simultaneous events, as it will typically be only 1. But increase the value for the length of the path + filename to 64 (which is a reasonable size for a typical /home/something/GNUstep/Defaults/WMRootmenu filename).
This commit is contained in:
@@ -298,8 +298,8 @@ void DispatchEvent(XEvent * event)
|
|||||||
* Calls wDefaultsCheckDomains if config database is updated
|
* Calls wDefaultsCheckDomains if config database is updated
|
||||||
*----------------------------------------------------------------------
|
*----------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
/* allow 5 simultaneous events, with path + filenames up to 64 chars */
|
||||||
#define BUFF_SIZE ((sizeof(struct inotify_event) + 16)*512)
|
#define BUFF_SIZE ((sizeof(struct inotify_event) + 64)*5)
|
||||||
void inotifyHandleEvents(int fd, int wd)
|
void inotifyHandleEvents(int fd, int wd)
|
||||||
{
|
{
|
||||||
extern void wDefaultsCheckDomains(void);
|
extern void wDefaultsCheckDomains(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user