gnodet opened a new pull request, #412:
URL: https://github.com/apache/felix-dev/pull/412

   # Fix interruption handling in nested shells
   
   This PR complements PR #411 to fully fix the issue reported in 
jline/jline3#1143 where interruption exceptions (Ctrl+C) were not working for 
child sessions.
   
   ## Problem
   When a user starts a shell session, then runs the 'sh' command to create a 
nested shell, and then runs a command like 'ttop' in that nested shell, 
pressing Ctrl+C doesn't properly interrupt the command.
   
   ## Solution
   This PR modifies the Shell.sh method to properly handle interruption signals 
in nested shells by clearing and restoring the current pipe. The fix follows 
the same pattern implemented in the Posix.runShell method, ensuring consistent 
behavior across different shell creation methods.
   
   PR #411 made the Pipe.setCurrentPipe method public, which is a prerequisite 
for this fix. Together, these changes ensure that interruption signals are 
properly propagated to commands running in nested shells.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@felix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to