View | Details | Raw Unified | Return to bug 222875 | Differences between
and this patch

Collapse All | Expand All

(-)monitor.c (-2 / +5 lines)
Lines 846-855 Link Here
846
846
847
	while( !quitting )
847
	while( !quitting )
848
	{
848
	{
849
		int ret;
850
		struct timespec timeout = {1, 0};
849
		struct kevent ke;
851
		struct kevent ke;
850
		if ( kevent(global_kqueue_handle, NULL, 0, &ke, 1, NULL) == -1 )
852
		if ((ret = kevent(global_kqueue_handle, NULL, 0, &ke, 1, &timeout)) <= 0 )
851
		{
853
		{
852
			DPRINTF(E_WARN, L_INOTIFY,	"kevent polling failure: %s\n", strerror(errno));
854
			if (ret == -1)
855
			    DPRINTF(E_WARN, L_INOTIFY,	"kevent polling failure: %s\n", strerror(errno));
853
			continue;
856
			continue;
854
		}
857
		}
855
858

Return to bug 222875