mesalock-linux / mesabox

A collection of core system utilities written in Rust for Unix-like systems (and now Windows)
BSD 3-Clause "New" or "Revised" License
137 stars 19 forks source link

Issues with using the utils as shell built-ins #25

Open Arcterus opened 6 years ago

Arcterus commented 6 years ago

Given that I am planning on using all the mesabox utilities as built-ins for the shell, I thought I would use this issue to categorize any issues that come up.

One issue that I don't know how to solve until OOM can panic (instead of aborting) is that if one of the built-in utilities encounters an OOM error the entire shell will abort. Clearly, this is not intended behavior, so we should be careful with how much memory we allocate until OOM can panic (in which case we will just need to catch_unwind() the built-ins or something to make sure they don't crash the entire shell.