aboutsummaryrefslogtreecommitdiff
path: root/os.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2025-07-20 17:26:39 +0000
committerXin LI <delphij@FreeBSD.org>2025-07-20 17:26:39 +0000
commit9006df9a94bf66485f7d23eec79eb6a344136401 (patch)
tree24c6d309954a3b2d52c54d40d634f02e2c7f25f0 /os.c
parent48b0a08b8724e7d5671dac2abf17ddb6d4e2a8f8 (diff)
Diffstat (limited to 'os.c')
-rw-r--r--os.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os.c b/os.c
index 98a7ecf70c3c..357cbb356a16 100644
--- a/os.c
+++ b/os.c
@@ -275,7 +275,7 @@ start:
if (ret != 0)
{
if (ret == READ_INTR)
- sigs |= S_INTERRUPT;
+ sigs |= S_SWINTERRUPT;
reading = FALSE;
return (ret);
}
@@ -287,7 +287,7 @@ start:
int c;
c = WIN32getch();
- sigs |= S_INTERRUPT;
+ sigs |= S_SWINTERRUPT;
reading = FALSE;
if (c != CONTROL('C') && c != intr_char)
WIN32ungetch((char) c);
@@ -348,7 +348,7 @@ public int iopen(constant char *filename, int flags)
while (!opening && SET_JUMP(open_label))
{
opening = FALSE;
- if (sigs & S_INTERRUPT)
+ if (sigs & (S_INTERRUPT|S_SWINTERRUPT))
{
sigs = 0;
#if HAVE_SETTABLE_ERRNO