We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52597c3 commit de363a2Copy full SHA for de363a2
src/wg-quick/darwin.bash
@@ -85,11 +85,11 @@ parse_options() {
85
}
86
87
detect_launchd() {
88
- unset LAUNCHED_BY_LAUNCHD
+ LAUNCHED_BY_LAUNCHD=1
89
local line
90
while read -r line; do
91
- if [[ $line =~ ^\s*domain\ =\ ]]; then
92
- LAUNCHED_BY_LAUNCHD=1
+ if [[ $line =~ ^\s*\(pid\ $$\ is\ not\ managed\ by\ launchd\) ]]; then
+ unset LAUNCHED_BY_LAUNCHD
93
break
94
fi
95
done < <(launchctl procinfo $$ 2>/dev/null)
0 commit comments