thoughtbot / cocaine

A small library for doing (command) lines.
https://robots.thoughtbot.com
Other
785 stars 55 forks source link

How can i get the pid of opening process? #95

Closed aboutqx closed 7 years ago

aboutqx commented 7 years ago

Commonly we use ctrl+c to terminate a process,but I've googled,it's not STDIN ,but using pid to terminate the process. There is no pid returned from the run,seems not exposed.

jyurek commented 7 years ago

All of the command runners are blocking, so the most you'd be able to do is find out the pid after the command has completed. That's why no pid is exposed.