Skip to content

Commit 0d79c22

Browse files
committed
setproctitle effectively updates argv[0], why were we ever sticking the entire cmdline in there?
1 parent c2b81bd commit 0d79c22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

catkin_virtualenv/cmake/templates/program.devel.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ "${ARG_RENAME_PROCESS}" = "TRUE" ]; then
88
from setproctitle import setproctitle
99
1010
program_path = "${program_path}"
11-
setproctitle(' '.join([${program_basename}] + sys.argv[1:]))
11+
setproctitle("${program_basename}")
1212
exec(open(program_path).read())
1313
EOF
1414
else

catkin_virtualenv/cmake/templates/program.install.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ "${ARG_RENAME_PROCESS}" = "TRUE" ]; then
88
from setproctitle import setproctitle
99
1010
program_path = "${CMAKE_INSTALL_PREFIX}/${program_install_location}/${program_basename}"
11-
setproctitle(' '.join([program_basename] + sys.argv[1:]))
11+
setproctitle("${program_basename}")
1212
exec(open(program_path).read())
1313
EOF
1414
else

0 commit comments

Comments
 (0)