Skip to content

Commit c840f9b

Browse files
committed
Change posix_spawn to posix_spawnp
1 parent 3ab5595 commit c840f9b

File tree

1 file changed

+2
-2
lines changed
  • ydb/library/benchmarks/runner/runner

1 file changed

+2
-2
lines changed

ydb/library/benchmarks/runner/runner/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def run(argv, out, err, timeout=30*60, hard_timeout=5):
2727
oldmask = signal.pthread_sigmask(signal.SIG_BLOCK, {signal.SIGCHLD})
2828
try:
2929
start_time = time_ns()
30-
pid = os.posix_spawn(argv[0], argv, os.environ, setsigmask=oldmask, file_actions=(
30+
pid = os.posix_spawnp(argv[0], argv, os.environ, setsigmask=oldmask, file_actions=(
3131
([(os.POSIX_SPAWN_OPEN, 1, out, os.O_WRONLY | os.O_CREAT, 0o666)] if out else []) +
3232
([(os.POSIX_SPAWN_OPEN, 2, err, os.O_WRONLY | os.O_CREAT, 0o666)] if err else [])
3333
))
@@ -169,7 +169,7 @@ def main():
169169
print(".", end="", flush=True)
170170
if args.perf:
171171
exitcode, rusage, elapsed, iostat = run(
172-
['/usr/bin/perf', 'record', '-F250', '-g', '--call-graph', 'dwarf', '-o', '{}/perf.data'.format(outdir), '--'] +
172+
['perf', 'record', '-F250', '-g', '--call-graph', 'dwarf', '-o', '{}/perf.data'.format(outdir), '--'] +
173173
argv + [
174174
'--result-file', '/dev/null',
175175
'--bindings-file', bindings,

0 commit comments

Comments
 (0)