Processes in system are not terminated properly #82

Closed
opened 2024-07-27 12:46:07 +02:00 by Burer · 2 comments
Owner

If close any program while Process manager is running (or terminate any process in the Process manager itself) it's row doesn't disappear from Process manager processes list and continue to be displayed with zero values.

Also, processes numbering looks a little bit odd, but I am not sure that it is a bug and not intended to be so.

If close any program while Process manager is running (or terminate any process in the Process manager itself) it's row doesn't disappear from Process manager processes list and continue to be displayed with zero values. Also, processes numbering looks a little bit odd, but I am not sure that it is a bug and not intended to be so.
Sweetbread added the
Kind
Bug
Priority
Medium
Category/Applications
labels 2024-07-27 12:58:05 +02:00
Author
Owner

UPD. @Doczom did some investigation and found that the problem is not in Process manager code itself, but rather in kernel code, especially in file /kernel/trunk/core/sys32.inc.
For example, System Monitor faces the same bug and use stub to check for empty processes and skip them:

for (j=0; j<11; j++) if (Process.name[j]!=' ') 
{
   *show process info*
}

Thus, this issue should be marked as Category/Kernel and maybe have higher priority, than Medium.

UPD. @Doczom did some investigation and found that the problem is not in **Process manager** code itself, but rather in kernel code, especially in file **/kernel/trunk/core/sys32.inc**. For example, **System Monitor** faces the same bug and use stub to check for empty processes and skip them: ```c for (j=0; j<11; j++) if (Process.name[j]!=' ') { *show process info* } ``` Thus, this issue should be marked as **Category/Kernel** and maybe have higher priority, than **Medium**.
Burer changed title from Process manager doesn't delete rows of terminated processes to Processes in system are not terminated properly 2024-10-15 08:37:32 +02:00
Author
Owner

Kernel bug was fixed in d235c8914c, and SysMon stub was remade to proper filtration of ghost processes in f366d6d925.
Thus, this issue can be closed now.

Kernel bug was fixed in d235c8914c, and SysMon stub was remade to proper filtration of ghost processes in f366d6d925. Thus, this issue can be closed now.
Burer closed this issue 2025-02-06 17:07:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#82
No description provided.