retis-org / retis

Tracing packets in the Linux networking stack & friends
https://retis.readthedocs.io/en/stable/
100 stars 14 forks source link

retis collect ignores 2>&1 redirection. #396

Closed igsilya closed 5 months ago

igsilya commented 5 months ago
# retis collect 2>&1 >/dev/null
Collector(s) started: ct, skb-tracking, skb-drop, ovs, skb
9 probe(s) loaded

# ls -alh /proc/$(pgrep retis)/fd/[1-2]
l-wx------. 1 root root 64 Jun 19 09:00 /proc/37517/fd/1 -> /dev/null
lrwx------. 1 root root 64 Jun 19 09:00 /proc/37517/fd/2 -> /dev/pts/0

As seen above, stderr is still pointed to the terminal and we see the output in the terminal.

# retis --version
retis v1.4.0 ("senyoret")
igsilya commented 5 months ago

Sorry for the noise, I messed up the order of redirections...