1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-18 22:54:49 +00:00

Use kill instead of raise for SIGINT.

Raise signals can only be handled by the current thread while
kill signals can be handled by background threads.
This commit is contained in:
Andrew Chambers 2021-11-15 20:38:23 +13:00
parent 75f56b68c6
commit 2ef49a92cc

View File

@ -757,7 +757,7 @@ static int line() {
kleft(); kleft();
break; break;
case 3: /* ctrl-c */ case 3: /* ctrl-c */
raise(SIGINT); kill(getpid(), SIGINT);
/* fallthrough */ /* fallthrough */
case 17: /* ctrl-q */ case 17: /* ctrl-q */
gbl_cancel_current_repl_form = 1; gbl_cancel_current_repl_form = 1;