GithubHelp home page GithubHelp logo

Comments (10)

tgrabiec avatar tgrabiec commented on June 8, 2024

This issue should be solved when we switch to CRaSH with this change released: https://github.com/tgrabiec/crash/tree/interrupting

It is still experimental work and originates from upstream maintainer with intent to make interruption work also on Windows. It changes the approach for triggering interruption from having a SIGINT handler to disabling 'intr' in stty and reacting on character '\x03' (^C).

from osv.

nyh avatar nyh commented on June 8, 2024

On Thu, Oct 10, 2013 at 10:53 AM, Tomasz Grabiec
[email protected]:

This issue should be solved when we switch to CRaSH with this change
released: https://github.com/tgrabiec/crash/tree/interrupting

It is still experimental work and originates from upstream maintainer with
intent to make interruption work also on Windows. It changes the approach
for triggering interruption from having a SIGINT handler to disabling
'intr' in stty and reacting on character '3' (^C).

Good, this is basically what the ssh code already does (it doesn't get
SIGINT, so it needs to handle '\3' on its own), so it's what Avi suggested
we do.

Please note that this will only correctly interrupt JVM-based commands
(Java, Groovy, etc.) - if we run elf commands, they won't cooperate with
the Java Thread.interrupt() protocol, and can't be stopped in this way. But
we can think about this issue another time.


Reply to this email directly or view it on GitHubhttps://github.com//issues/53#issuecomment-26034976
.

Nadav Har'El
[email protected]

from osv.

tgrabiec avatar tgrabiec commented on June 8, 2024

A new version of CRaSH (1.3.0-beta8) has just been released, it should have the necessary fixes: crashub/crash@4b70314

from osv.

penberg avatar penberg commented on June 8, 2024

@tgrabiec What's the status of this? Did we already switch to new version Crash?

from osv.

tgrabiec avatar tgrabiec commented on June 8, 2024

@penberg No, we haven't yet. I talked to @lightpriest, he's going to work on upgrading.

from osv.

lightpriest avatar lightpriest commented on June 8, 2024

mgmt tree is upgraded to CRaSH 1.3.0-beta8 but it has a new bug (specifically related to OSv). I sent a pull request to fix it.

from osv.

tzach avatar tzach commented on June 8, 2024

@lightpriest any chance we can have this fix for OSv 0.0.4 ?

from osv.

lightpriest avatar lightpriest commented on June 8, 2024

@tzach I tried crash-1.3.0-beta11 to test this, but now there's a new problem. ^C not only causes thread top to stop, but the vm terminates, I'll try to find out why. Any ideas in the meantime?

from osv.

lightpriest avatar lightpriest commented on June 8, 2024

This patch (https://groups.google.com/forum/#!topic/osv-dev/S8pN0ODiF4Y) should make ^C work intuitively, no need to upgrade CRaSH, for now. I'll wait on the merge which enables automatic ssh host key generation.

from osv.

tzach avatar tzach commented on June 8, 2024

works
Ctrl+C stops thread top, and return to CLI

from osv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.