This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
tnt gerrit-no-reply at lists.osmocom.orgtnt has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-abis/+/18113 ) Change subject: e1_input: Allow to unset the pcap fd ...................................................................... e1_input: Allow to unset the pcap fd Note that this only affects lines that are create _after_ the call. Existing ones will keep their current fd and that's also why we can't just close it since it's still in use. Signed-off-by: Sylvain Munaut <tnt at 246tNt.com> Change-Id: I5c7dd740ba0a90b40c69a53b3dcc9d6d6a98f660 --- M src/e1_input.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/13/18113/1 diff --git a/src/e1_input.c b/src/e1_input.c index ad4e25c..c6ca2a3 100644 --- a/src/e1_input.c +++ b/src/e1_input.c @@ -153,7 +153,7 @@ }; pcap_fd = fd; - return write(pcap_fd, &header, sizeof(header)); + return (pcap_fd < 0) ? 0 : write(pcap_fd, &header, sizeof(header)); } /* This currently only works for the D-Channel */ -- To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/18113 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-abis Gerrit-Branch: master Gerrit-Change-Id: I5c7dd740ba0a90b40c69a53b3dcc9d6d6a98f660 Gerrit-Change-Number: 18113 Gerrit-PatchSet: 1 Gerrit-Owner: tnt <tnt at 246tNt.com> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200508/31367fc0/attachment.htm>