You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently one of the forking kind.
This leads to an incompatibility with curses, as screen properties are reset, when a (forked) child process exits.
Which means, everytime a PWMstop()s, curses screen does all sorts of stuff.
Currently this project uses the multitprocessing module and makes use of
Process()
, which are started usingstart()
.Rock64-R64.GPIO/R64/_GPIO.py
Lines 352 to 353 in fbf988a
This does invoke one of the three different startmethods of multiprocessing implicitely.
https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
Apparently one of the forking kind.
This leads to an incompatibility with curses, as screen properties are reset, when a (forked) child process exits.
Which means, everytime a
PWM
stop()
s, curses screen does all sorts of stuff.This project would not invoke such unwanted side effects, if started processes where spawned instead of forked.
In documentation a few lines below the above reference https://docs.python.org/3/library/multiprocessing.html#multiprocessing.set_start_method is documented.
@Leapo Would it be possible to use it instead of the implicit behavior?
The text was updated successfully, but these errors were encountered: