diff options
Diffstat (limited to 'psutil/tests/test_process.py')
-rwxr-xr-x | psutil/tests/test_process.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index 08f16647..c9059e33 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -1413,11 +1413,13 @@ class TestProcess(PsutilTestCase): code = textwrap.dedent(""" #include <unistd.h> #include <fcntl.h> + char * const argv[] = {"cat", 0}; char * const envp[] = {"A=1", "X", "C=3", 0}; + int main(void) { - /* Close stderr on exec so parent can wait for the execve to - * finish. */ + // Close stderr on exec so parent can wait for the + // execve to finish. if (fcntl(2, F_SETFD, FD_CLOEXEC) != 0) return 0; return execve("/bin/cat", argv, envp); |