[WIP] Enable job control
allow interactive commands to not send summary to background by setting set -m
- [ ] Fix #5
- [ ] try explore shortcut?
- [ ] docs
Two questions:
- Could this job control also be used to first do the unshare and get its pid in the background, create the mapper in the background and then bring the unshare in the foreground?
- What are the implications of this? What changes from the perspective of an application. Is there a case where this could lead to an weird/erroneous execution?
I'm confused that we want to enable it... shouldn't we disable job control (set +m) if we don't want background messages?
If enabling job control is fixing things, it's because under job control every child process gets a new process group... and I suspect process group shenanigans are what's causing things to weirdly go into the background. Maybe we can do a better job here by running trap - TTIN TTOU, which won't put us into the background when we read or write when we're not the active pgroup?
Closing, merging with #68 as per #5