Skip to content

Commit c57eb77

Browse files
committed
spawn/Init: pass name as std::string_view
1 parent 0f18cab commit c57eb77

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/accessory/Namespace.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Namespace::MakePid()
125125

126126
assert(!pid_init.IsDefined());
127127

128-
const auto pid = UnshareForkSpawnInit(name.c_str());
128+
const auto pid = UnshareForkSpawnInit(name);
129129
const int pidfd = my_pidfd_open(pid, PIDFD_NONBLOCK);
130130
if (pidfd < 0)
131131
throw MakeErrno("pidfd_open() failed");

0 commit comments

Comments
 (0)