Commit 4b8f4dd2 authored by Peter Hutterer's avatar Peter Hutterer Committed by Chase Douglas
Browse files

process: document that va_args for Start() must end with zero-length string


Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: default avatarChase Douglas <chase.douglas@canonical.com>
Signed-off-by: default avatarChase Douglas <chase.douglas@canonical.com>
parent 5ebb1598
......@@ -112,7 +112,8 @@ class Process {
* See 'man execvp' for further information on the variadic argument list.
*
* @param program The program to start.
* @param args Variadic list of arguments passed to the program.
* @param args Variadic list of arguments passed to the program. This list
* must end in a zero-length string ("", not NULL).
*
* @throws std::runtime_error on failure.
*
......@@ -124,7 +125,8 @@ class Process {
/**
* Starts a program as a child process.
*
* Takes a variadic list of arguments passed to the program.
* Takes a variadic list of arguments passed to the program. This list
* must end in a zero-length string ("", not NULL).
* See 'man execvp' for further information on the variadic argument list.
*
* @param program The program to start.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment