Skip to content

Commit

Permalink
Disable CTRL-C interrupt handling in launcher process.
Browse files Browse the repository at this point in the history
Bump version.
  • Loading branch information
CuppoJava committed Sep 28, 2022
1 parent d05e2a6 commit 79db48f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/params.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public defn compiler-flags () :
to-tuple(COMPILE-FLAGS)

;========= Stanza Configuration ========
public val STANZA-VERSION = [0 17 21]
public val STANZA-VERSION = [0 17 22]
public var STANZA-INSTALL-DIR:String = ""
public var OUTPUT-PLATFORM:Symbol = `platform
public var STANZA-PKG-DIRS:List<String> = List()
Expand Down
9 changes: 9 additions & 0 deletions runtime/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,16 @@ static void write_error_and_exit (int fd){
exit(-1);
}

static void disable_ctrl_c () {
#ifdef PLATFORM_WINDOWS
SetConsoleCtrlHandler(NULL, TRUE);
#else
signal(SIGINT, SIG_IGN);
#endif
}

static void launcher_main (FILE* lin, FILE* lout){
disable_ctrl_c();
while(1){
//Read in command
int comm = fgetc(lin);
Expand Down

0 comments on commit 79db48f

Please sign in to comment.