diff options
author | Josiah Frentsos via skaware <skaware@list.skarnet.org> | 2024-06-07 12:46:51 -0400 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2024-06-07 17:44:45 +0000 |
commit | 9759bfb1fa9c8e7d27678c8405607d5a444e6941 (patch) | |
tree | edfe9b4284d4eb92e2db87d1d0fa55d3c949a910 /src | |
parent | 92b204c5f181f5d3f804d7f14840479a43bcdaad (diff) | |
download | s6-9759bfb1fa9c8e7d27678c8405607d5a444e6941.tar.gz s6-9759bfb1fa9c8e7d27678c8405607d5a444e6941.tar.xz s6-9759bfb1fa9c8e7d27678c8405607d5a444e6941.zip |
s6-supervise: Don't add '(child)' to the end of PROG
This has been unnecessary since commit 970bbeb622573a80381f0f32e6f287195182c0e0. Signed-off-by: Josiah Frentsos <jfrent@tilde.team>
Diffstat (limited to 'src')
-rw-r--r-- | src/supervision/s6-supervise.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index 3201127..c0a3edb 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -780,11 +780,10 @@ int main (int argc, char const *const *argv) { size_t proglen = strlen(PROG) ; size_t namelen = strlen(argv[1]) ; - char progname[proglen + namelen + 10] ; + char progname[proglen + namelen + 2] ; memcpy(progname, PROG, proglen) ; progname[proglen] = ' ' ; memcpy(progname + proglen + 1, argv[1], namelen + 1) ; - memcpy(progname + proglen + 2 + namelen, "(child)", 8) ; PROG = progname ; if (!fd_sanitize()) strerr_diefu1sys(111, "sanitize stdin and stdout") ; { |