pipe_set_keep_out function

Change output flag