fachat / GeckOS-V2

GeckOS version 2, a multi-tasking and multithreading operating system for the 6502
http://www.6502.org/users/andre/osa/index.html
GNU General Public License v2.0
240 stars 28 forks source link

Pressing Ctrl-C while a program loads make the program hang #78

Open fachat opened 8 months ago

fachat commented 8 months ago

After implementing #29 , when pressing Ctrl-C (RUN/STOP) while the loader is loading the file to be executed, terminates the loader, but does not free the SENDBUF PSEM. This makes the system hang on each function that uses SENDBUF

fachat commented 8 months ago

This should automatically be fixed when implementing the new buffer / streams handling in NG - so won't fix here.

fachat commented 8 months ago

Addition: similar problems appear when the child process is suspended (e.g. via Ctrl-Z) while still in the loading process.

fachat commented 8 months ago

Implementation idea for NG buffer/send/receive:

Note: need to check for race conditions.