summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f93d32a..cd38cc3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -19,6 +19,8 @@ void execute_string_line(char *line, ShellState *shstate) {
int main() {
+ signal(SIGTTIN, SIG_IGN);
+ signal(SIGTTOU, SIG_IGN);
ShellState shstate = {.shell_vars = make_KeyValMap(256), .aliases = make_KeyValMap(256)};
source_script(RCFILENAME, &shstate);
char* line;