Commit Diff


commit - 7189776177dc49913b442527853eda23f57285ab
commit + b2396b2c55e3573bc93c1f004b695f71bb92b207
blob - 672411d6e6072c51b7d50e9b26e81924ab9b41b9
blob + cb9c9b44fd3af895600e7381a65cff17938f83fe
--- vias.c
+++ vias.c
@@ -26,6 +26,7 @@
 #include <login_cap.h>
 #include <bsd_auth.h>
 #include <readpassphrase.h>
+#include <signal.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -482,6 +483,7 @@ main(int argc, char **argv)
 		if (pledge("stdio cpath", NULL) == -1)
 			err(1, "pledge");
 
+		(void) signal(SIGINT, SIG_IGN);
 		while ((ret = waitpid(vipid, &status, 0)) == -1 &&
 		    errno == EINTR)
 			;