aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/main.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-10-20 14:21:06 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-10-20 14:21:06 -0700
commit7e1eaee616365799cfc4cc787fdaa9448958536b (patch)
treefe48164500a72b86ae0a04bf90783b4ea3186dbe /sys/cmd/rc/main.c
parent888679027c2e9b43d1485d970df8170ac4fda29f (diff)
Feat: now execs instead of exec + fork if going to exit.
One quick solution to the lack of tracking deep into the command line is to note that the pattern of code emitted for an async is: Xasync |__ child (command) |__ parent (continues) The child creates a process group, as described before. If the child is a simple command, we will now "exec" as it will exit immediately after the command. This gives us the correct behavior, at least for simple cases. This also fixed pipes. However, if child has to be forked, i.e. can't be immediately execed, then I don't think this process works...
Diffstat (limited to 'sys/cmd/rc/main.c')
0 files changed, 0 insertions, 0 deletions