~stacyharper/bonsai

74eea2a6c7a57a024b828a60e952457530970b6c — Stacy Harper 12 days ago b496d75
Clarify some pipe and pid responsibility scopes
1 files changed, 0 insertions(+), 5 deletions(-)

M bonsai/state_machine.ha
M bonsai/state_machine.ha => bonsai/state_machine.ha +0 -5
@@ 123,10 123,6 @@ fn find_to_wait_transition_delay(transitions: []transition) (void | transition_d
};

fn run_delay_transition(state: *state_machine, transition: transition_delay) void = {
	if (state.wait_pipes is void) {
		state.wait_pipes = unix::pipe(unix::pipe_flag::NONBLOCK)!;
	};

	let wait_pipes = state.wait_pipes as (io::file, io::file);

	match (exec::fork()) {


@@ 184,7 180,6 @@ export fn sync_back_wait_child(state: *state_machine, abort_it: bool) bool = {
				exec::kill(state.wait_pid)!;
				exec::wait(&state.wait_pid)!;
				state.wait_pid = 0;
				state.wait_pipes = void;
			};
			return false;
		case let err: io::error =>