<p><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/18114">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/18114/1/src/e1_input_vty.c">File src/e1_input_vty.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/18114/1/src/e1_input_vty.c@249">Patch Set #1, Line 249:</a> <code style="font-family:monospace,monospace">         vty_out(vty, "Failed to setup E1 pcap recording to %s.%s", argv[1], VTY_NEWLINE);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">argv[0]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Oops. Will fix that.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/18114/1/src/e1_input_vty.c@254">Patch Set #1, Line 254:</a> <code style="font-family:monospace,monospace">     pcap_filename = talloc_strdup(NULL, argv[0]);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">We try not to allocated on NULL ctx. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">It's in e1_input.c but limited to that file, I'd need to bring it to the global namespace just for that :/</p><p style="white-space: pre-wrap; word-wrap: break-word;">At that point I'd rather just not keep the filename at all and the 'write' config would just no include the filename. This is just a debug feature anyway.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/18114/1/src/e1_input_vty.c@267">Patch Set #1, Line 267:</a> <code style="font-family:monospace,monospace"> e1_set_pcap_fd(-1);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Don't you need to close the previous fd?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">We can't.</p><p style="white-space: pre-wrap; word-wrap: break-word;">It's explained in the commit logs, but this only affects the fd of _future_ lines, the active ones will continue to use whatever was set previously, so you can't close the fd since it's still being used.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-abis/+/18114">change 18114</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/libosmo-abis/+/18114"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-abis </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I0b4251702aecd6721b9d63c320351ef6cb513454 </div>
<div style="display:none"> Gerrit-Change-Number: 18114 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: tnt <tnt@246tNt.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: tnt <tnt@246tNt.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 08 May 2020 12:57:59 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>