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

Collapse All | Expand All

(-)monitor.c (-2 / +10 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));
856
			if( next_pl_fill && (time(NULL) >= next_pl_fill) )
857
			{
858
				fill_playlists();
859
				next_pl_fill = 0;
860
			}
853
			continue;
861
			continue;
854
		}
862
		}
855
863

Return to bug 222875