* Break out of the scanner on SIGTERM with forking disabled.

This commit is contained in:
Justin Maggard 2011-02-26 00:02:33 +00:00
parent 95becb5c99
commit 2170f6a53b

View File

@ -754,6 +754,10 @@ ScanDirectory(const char * dir, const char * parent, enum media_types dir_type)
for (i=0; i < n; i++)
{
#if !USE_FORK
if( quitting )
break;
#endif
type = TYPE_UNKNOWN;
sprintf(full_path, "%s/%s", dir, namelist[i]->d_name);
name = escape_tag(namelist[i]->d_name);