@@ -49,24 +49,18 @@ public abstract class AsyncTask : GLib.Object{
4949	protected  string  script_file =  " " 
5050	protected  string  working_dir =  " " 
5151
52- 	public  bool  background_mode =  false ;
53- 	
5452	//  public
5553	public  AppStatus  status;
5654
5755    private  string  _status_line =  " " 
5856    public  GLib . Mutex  status_line_mutex;
5957
6058	public  int  exit_code =  0 ;
61- 	public  string  error_msg =  " " 
6259	public  GLib . Timer  timer;
6360	public  double  progress =  0.0 ;
6461	public  double  percent =  0.0 ;
6562	public  int64  prg_count =  0 ;
6663	public  int64  prg_count_total =  0 ;
67- 	public  int64  prg_bytes =  0 ;
68- 	public  int64  prg_bytes_total =  0 ;
69- 	public  string  eta =  " " 
7064	// public bool is_running = false;
7165
7266	//  signals
@@ -128,9 +122,7 @@ public abstract class AsyncTask : GLib.Object{
128122		finish_called =  false ;
129123
130124		prg_count =  0 ;
131- 		prg_bytes =  0 ;
132- 		error_msg =  " " 
133- 		
125+ 
134126		string [] spawn_args =  new  string [1 ];
135127		spawn_args[0 ] =  script_file;
136128
@@ -153,8 +145,6 @@ public abstract class AsyncTask : GLib.Object{
153145			    out  output_fd,
154146			    out  error_fd);
155147
156- 			set_priority();
157- 
158148			log_debug(" AsyncTask: child_pid: %d " . printf(child_pid));
159149
160150			//  create stream readers
@@ -236,8 +226,6 @@ public abstract class AsyncTask : GLib.Object{
236226			err_line =  dis_err. read_line (null );
237227			while  (err_line !=  null ) {
238228				if  (err_line. length >  0 ){
239- 					error_msg + =  " %s\n " . printf(err_line);
240- 					
241229					parse_stderr_line(err_line);
242230					stderr_line_read(err_line); // signal
243231				}
@@ -362,30 +350,6 @@ public abstract class AsyncTask : GLib.Object{
362350		log_debug(" process_quit: %d " . printf(child_pid));
363351	}
364352
365- 	public  void  set_priority () {
366- 		
367- 		if  (background_mode){
368- 			set_priority_value(5 );
369- 		}
370- 		else {
371- 			set_priority_value(0 );
372- 		}
373- 	}
374- 
375- 	public  void  set_priority_value (int  prio ) {
376- 		
377- 		Pid  app_pid =  Posix . getpid();
378- 		process_set_priority (app_pid, prio);
379- 
380- 		if  (status ==  AppStatus . RUNNING
381- 			process_set_priority (child_pid, prio);
382- 
383- 			foreach  (Pid  sub_child_pid in  get_process_children (child_pid)) {
384- 				process_set_priority (sub_child_pid, prio);
385- 			}
386- 		}
387- 	}
388- 
389353	public  string  stat_time_elapsed{
390354		owned  get {
391355			long  elapsed =  (long ) timer_elapsed(timer);
0 commit comments