The bool logic around setting up the TTY ended up getting flipped accidentally. Also added a test for exec with TTY. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Also cleans up some of the API side of exec. Was writing the header twice (two different headers). Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Signed-off-by: Brian Goff <cpuguy83@gmail.com>