fix: bugs related to O2 optimization
[lunaix-os.git] / lunaix-os / kernel / tty / lxconsole.c
index ad3fc420af8520413ee46e1036b5e1daa62c7e77..3404450048a9802cd638e0bdac58170db5abc902 100644 (file)
@@ -27,7 +27,7 @@ console_flush();
 static waitq_t lx_reader;
 static volatile char ttychr;
 
-static pid_t fg_pgid = 0;
+static volatile pid_t fg_pgid = 0;
 
 inline void
 print_control_code(const char cntrl)