1
0
mirror of https://github.com/janet-lang/janet synced 2024-09-28 07:08:14 +00:00

Merge pull request #873 from andrewchambers/procsig

Use kill instead of raise for SIGINT.
This commit is contained in:
Calvin Rose 2021-11-15 07:44:30 -06:00 committed by GitHub
commit a20bdd334a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;