diff --git a/CompilerSource/general/bettersystem.cpp b/CompilerSource/general/bettersystem.cpp index 738f220fee..293f918d63 100644 --- a/CompilerSource/general/bettersystem.cpp +++ b/CompilerSource/general/bettersystem.cpp @@ -354,7 +354,7 @@ void myReplace(std::string& str, const std::string& oldStr, const std::string& n // Background process groups get SIGTTIN if // reading from the terminal. int infd = open("/dev/null", O_RDONLY); - dup2(infd, STDIN_FILNO); + dup2(infd, STDIN_FILENO); close(STDIN_FILENO); // Redirect STDOUT