From cd9f7b84bbb5a09fbd2d2b1d011ea9dce4666ba5 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sun, 22 Mar 2015 23:43:58 +0000 Subject: [PATCH] Use POSIX pid_t and not lldb::pid_t. The latter is uint64_t beacuse lldb supports arbitrary pid/platforms but in this case we're using it as return value for fork() which might return -1 to the parent in case the syscall fails. Differential Revision: http://reviews.llvm.org/D8491 llvm-svn: 232926 --- lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp index ba0bbfd..6ae03bf 100644 --- a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp +++ b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp @@ -964,7 +964,7 @@ ProcessMonitor::Launch(LaunchArgs *args) lldb_utility::PseudoTerminal terminal; const size_t err_len = 1024; char err_str[err_len]; - lldb::pid_t pid; + ::pid_t pid; // Propagate the environment if one is not supplied. if (envp == NULL || envp[0] == NULL) -- 2.7.4