29jm / SnowflakeOS

"It is very special"
https://jmnl.xyz
MIT License
316 stars 18 forks source link

Command output isn't shown in terminal after execution #16

Closed 29jm closed 3 years ago

29jm commented 3 years ago

Steps to reproduce:

The output is only accessible via the log command within SnowflakeOS, or via the serial.log file on the host machine.

29jm commented 3 years ago

This requires changes to the way programs are executed from other programs, i.e. the exec system call, to fix this properly. I haven't thought about it long enough yet, discussion appreciated!

29jm commented 3 years ago

Closed by f426ba00fc5905b0c91e28b8edfaef6c78f52cfd. A fair bit of cleanup to do, notably making pipes a proper concept, usable from userspace, and having a way for the program that calls execs to wait termination, while printing output. Right now programs started from the terminal have a behavior similar to those started as prog& in a bash shell for instance.