dmorn / flexi

KIM needs a small tool to run stuff on some specific hardware, with auto-scaling.
3 stars 0 forks source link

Understanding when a process terminates #1

Closed dmorn closed 4 years ago

dmorn commented 4 years ago

Right now reading from err and retv files is not a blocking operation, hence clients need to poll retv to find out when the remote process terminates. I think it would be better if retv worked as a pipe, blocking on reads till something it written on the other side or the pipe is closed. Once the read unlocks, clients can also inspect the err file to checkout if an error occurred.