added nice -n 19, so that all extensive filesystemoperations will be
* src/FileSystem.cc: added nice -n 19, so that all extensive filesystemoperations will be 'nice' :) * src/OperationDetail.cc, src/Utils.cc: cleanups
This commit is contained in:
parent
ce9431824c
commit
82e6f6b132
|
@ -1,3 +1,10 @@
|
|||
2006-08-21 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||
|
||||
* src/FileSystem.cc: added nice -n 19, so that all extensive
|
||||
filesystemoperations will be 'nice' :)
|
||||
* src/OperationDetail.cc,
|
||||
src/Utils.cc: cleanups
|
||||
|
||||
2006-08-20 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||
|
||||
* src/Dialog_Progress.cc: enabled set_do_overwrite_confirmation() for
|
||||
|
|
|
@ -29,7 +29,7 @@ int FileSystem::execute_command( const Glib::ustring & command, OperationDetail
|
|||
{
|
||||
operationdetail .add_child( OperationDetail( command, STATUS_NONE, FONT_BOLD_ITALIC ) ) ;
|
||||
|
||||
int exit_status = Utils::execute_command( command, output, error ) ;
|
||||
int exit_status = Utils::execute_command( "nice -n 19 " + command, output, error ) ;
|
||||
|
||||
if ( ! output .empty() )
|
||||
operationdetail .get_last_child() .add_child( OperationDetail( output, STATUS_NONE, FONT_ITALIC ) ) ;
|
||||
|
|
|
@ -221,12 +221,7 @@ int Utils::execute_command( const Glib::ustring & command,
|
|||
&exit_status ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
Glib::spawn_command_line_sync( "sh -c '" + command + "'",
|
||||
&std_out,
|
||||
&std_error,
|
||||
&exit_status ) ;
|
||||
}
|
||||
Glib::spawn_command_line_sync( "sh -c '" + command + "'", &std_out, &std_error, &exit_status ) ;
|
||||
}
|
||||
catch ( Glib::Exception & e )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue