[PATCH wayland v2 2/3] tests: Correct return code handling
Bryce Harrington
bryce at osg.samsung.com
Fri Jan 9 16:05:12 PST 2015
Reviewed-by: Marek Chalupa <mchqwerty at gmail.com>
Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
---
tests/test-runner.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test-runner.c b/tests/test-runner.c
index 9abf22f..48e9a22 100644
--- a/tests/test-runner.c
+++ b/tests/test-runner.c
@@ -255,13 +255,13 @@ is_debugger_attached(void)
{
int status;
int rc;
- int pid = fork();
+ pid_t pid = fork();
if (pid == -1)
return 0;
if (pid == 0) {
- int ppid = getppid();
+ pid_t ppid = getppid();
if (ptrace(PTRACE_ATTACH, ppid, NULL, NULL) == 0) {
waitpid(ppid, NULL, 0);
ptrace(PTRACE_CONT, NULL, NULL);
--
1.9.1
More information about the wayland-devel
mailing list