<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 2:<br>That's all correct. But IMHO there is no way to "just" send the something on stdin and then carry on. I am just catching the exception from communicate() and continue. Stdin will then be closed but the process keeps running. Similar things happen with stdin.write()</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I think I read yesterday you can use process.stdin attribute as if it was a filr or alike and write to it. So don't need to use the communicate API. And if you still want to use the communicate API, probably not setting timeout or setting it to 0 avoids waiting and throwing the exception. AFAIU setting timeout to 5, even if you catch exception, will block for around 5 seconds before raising the excepion.</p><p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17560">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17560">change 17560</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17560"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3e5d843911998bb50726d93e3dfd3de584dc81a5 </div>
<div style="display:none"> Gerrit-Change-Number: 17560 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: srs_andre <andre@softwareradiosystems.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: srs_andre <andre@softwareradiosystems.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Sun, 22 Mar 2020 21:50:52 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>