* Break out of the scanner on SIGTERM with forking disabled.
This commit is contained in:
parent
95becb5c99
commit
2170f6a53b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user