-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RecordControl: Exit when input stream closes #17
Conversation
Thanks, Shea. I'm not able to reproduce the fix, though. My test case was oat record -p pos --interactive &
oat posigen rand2D pos I then interrupt the position generator and expect |
That's just the way job control works in the shell, it won't report that backgrounded processes exit until you next leave and enter the prompt (e.g. try: $ sleep 10 &
$ cat
<interrupt>
$ <wait ten seconds> <enter> If you type control-D, it will close stdin for the active process. So just run |
Well, I lied a bit. I actually did run the two processes in separate shells. I just wrote that out of expediency. I'm probably still just missing something. |
The 'comment' and 'close' buttons are awfully close together in PR interface... |
Hmm, this was blind-coded after fixing something on Hector's machine, I'll test when I get back in to the office on Tuesday and report back. |
Oh, this is just the command input that oat is listening on in interactive mode, nothing to do with the position inputs. |
Yeah, the position input is just to provide a dummy source to the recorder. I think I see where I was confused: The default behavior in oat components is to close when the upstream data source exits. When I think actually you were addressing something else, which I now understand. When the stream is explicitly ended by some client, the record controller should exit. Is that right? |
This was originally inspired by using |
Yes, I understand now. Thanks for the clarification. I'm going to open an issue for my other issue. Thanks for the fix! |
No description provided.