Skip to content

Commit ef226a9

Browse files
authored
analytics: fix mac not sending reports (#10026)
1 parent 8ea9d3e commit ef226a9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

dvc/daemon.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import inspect
44
import logging
55
import os
6-
import platform
76
import sys
87
from subprocess import Popen # nosec B404
98
from typing import List
@@ -93,13 +92,8 @@ def _spawn_posix(cmd, env):
9392
sys.stderr.close()
9493
os.closerange(0, 3)
9594

96-
if platform.system() == "Darwin":
97-
# workaround for MacOS bug
98-
# https://github.com/iterative/dvc/issues/4294
99-
_popen(cmd, env=env).communicate()
100-
else:
101-
os.environ.update(env)
102-
main(cmd)
95+
os.environ.update(env)
96+
main(cmd)
10397

10498
os._exit(0) # pylint: disable=protected-access
10599

0 commit comments

Comments
 (0)