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
On Windows using ManuallyDrop with the result of Process.lock will leave the process suspended forever.
On Linux the process will resume after the rust process exits.
This is due to SuspendThread and ptrace attach having different behavior. With ptrace, the process is always resumed once the debugging process exits.
One possible workaround is to directly send SIGSTOP. Whether this library should do this is unclear.
If there was a separate API Process.suspend and Process.resume which deliberately allowed leaving the process suspended then sending SIGSTOP on Linux would be better.
The text was updated successfully, but these errors were encountered:
This may not be a bug and just need documented:
On Windows using
ManuallyDrop
with the result of Process.lock will leave the process suspended forever.On Linux the process will resume after the rust process exits.
This is due to SuspendThread and ptrace attach having different behavior. With ptrace, the process is always resumed once the debugging process exits.
One possible workaround is to directly send SIGSTOP. Whether this library should do this is unclear.
If there was a separate API
Process.suspend
andProcess.resume
which deliberately allowed leaving the process suspended then sending SIGSTOP on Linux would be better.The text was updated successfully, but these errors were encountered: