Martins3 / loongson-dune

:zap: Process virtualization based on KVM. More useable, stable and practical than Stanford Dune.
20 stars 3 forks source link

ltp : KVM_EXIT_INTR #23

Closed Martins3 closed 3 years ago

Martins3 commented 3 years ago
Martins3 commented 3 years ago

I think the signal(Ctrl-C) will no captured immediately after it happened, but in fact, it's doesn't work as expected.

    while (true) {
        sleep(4);
        printf("sleep\n");
    }

No, the assumption is wrong, the sleep causes the process to jump into kernel space, so the signal will be captured immediately.

Martins3 commented 3 years ago