Stefan Schuermans commited on 2021-03-08 18:40:15
Showing 2 changed files, with 3 additions and 1 deletions.
... | ... |
@@ -466,7 +466,8 @@ class UptGui: |
466 | 466 |
[proc.n_iv_csw, proc.n_v_csw]) |
467 | 467 |
add('CPU time', duration2str(proc.cpu_time)) |
468 | 468 |
add('end time', timestamp2str(proc.end_timestamp)) |
469 |
- add_list('environment', sorted(proc.environ)) |
|
469 |
+ add_list('environment', |
|
470 |
+ sorted(proc.environ) if proc.environ is not None else None) |
|
470 | 471 |
add('executable', proc.exe) |
471 | 472 |
add_sum('file system operations', ['input', 'output'], |
472 | 473 |
[proc.in_block, proc.ou_block]) |
... | ... |
@@ -322,6 +322,7 @@ class Processes(uproctrace.parse.Visitor): |
322 | 322 |
proc = self._current_processes[proc_end.pid] |
323 | 323 |
else: |
324 | 324 |
proc = self._newProcess(proc_end.pid) |
325 |
+ self._toplevel_processes.append(proc) # unknown parent -> toplevel |
|
325 | 326 |
# set end event of process and process of end event |
326 | 327 |
proc.setEnd(proc_end) |
327 | 328 |
proc_end.setProcess(proc) |
328 | 329 |