Skip to content

FIXME false positive error: Our tor binary is still in use... giving up#10

Open
milahu wants to merge 1 commit intohaveno-dex:masterfrom
milahu:patch-1
Open

FIXME false positive error: Our tor binary is still in use... giving up#10
milahu wants to merge 1 commit intohaveno-dex:masterfrom
milahu:patch-1

Conversation

@milahu
Copy link

@milahu milahu commented Apr 23, 2025

example false-positive match:

$ ps -few | grep /home/user/.local/share/Haveno/xmr_mainnet/tor/tor | grep -v grep
user      678217  195492  0 08:41 pts/21   00:00:00 nano /home/user/.local/share/Haveno/xmr_mainnet/tor/torrc

$ ps -eo args | grep /home/user/.local/share/Haveno/xmr_mainnet/tor/tor | grep -v grep
nano /home/user/.local/share/Haveno/xmr_mainnet/tor/torrc

expected:

$ ps -eo args | grep -w ^/home/user/.local/share/Haveno/xmr_mainnet/tor/tor | grep -v grep

FIXME use regex: (^|\n)/path/to/tor( |\n|$)

or use a boundary after tor: (^|\n)/path/to/tor\b
this is what grep -w does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant