mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
Update autoloader to fix concurrency issues when changing loader path in autoloaded function
darcs-hash:20061028164122-ac50b-25f978df9afeb370a06ef7576ef03183034bc057.gz
This commit is contained in:
@@ -353,6 +353,9 @@ const wchar_t *function_get_definition_file( const wchar_t *argv )
|
||||
|
||||
CHECK( argv, 0 );
|
||||
|
||||
if( is_autoload )
|
||||
return 0;
|
||||
|
||||
load( argv );
|
||||
data = (function_data_t *)hash_get( &function, argv );
|
||||
if( data == 0 )
|
||||
@@ -368,6 +371,9 @@ int function_get_definition_offset( const wchar_t *argv )
|
||||
|
||||
CHECK( argv, -1 );
|
||||
|
||||
if( is_autoload )
|
||||
return -1;
|
||||
|
||||
load( argv );
|
||||
data = (function_data_t *)hash_get( &function, argv );
|
||||
if( data == 0 )
|
||||
|
||||
Reference in New Issue
Block a user