@@ -203,12 +203,12 @@ static Status EnsureFDFlags(int fd, int flags) {
203203
204204 int status = fcntl (fd, F_GETFL);
205205 if (status == -1 ) {
206- error. SetErrorToErrno ();
206+ error = Status::FromErrno ();
207207 return error;
208208 }
209209
210210 if (fcntl (fd, F_SETFL, status | flags) == -1 ) {
211- error. SetErrorToErrno ();
211+ error = Status::FromErrno ();
212212 return error;
213213 }
214214
@@ -1078,7 +1078,7 @@ Status NativeProcessLinux::Halt() {
10781078 Status error;
10791079
10801080 if (kill (GetID (), SIGSTOP) != 0 )
1081- error. SetErrorToErrno ();
1081+ error = Status::FromErrno ();
10821082
10831083 return error;
10841084}
@@ -1114,7 +1114,7 @@ Status NativeProcessLinux::Signal(int signo) {
11141114 Host::GetSignalAsCString (signo), GetID ());
11151115
11161116 if (kill (GetID (), signo))
1117- error. SetErrorToErrno ();
1117+ error = Status::FromErrno ();
11181118
11191119 return error;
11201120}
@@ -1191,7 +1191,7 @@ Status NativeProcessLinux::Kill() {
11911191 }
11921192
11931193 if (kill (GetID (), SIGKILL) != 0 ) {
1194- error. SetErrorToErrno ();
1194+ error = Status::FromErrno ();
11951195 return error;
11961196 }
11971197
@@ -2006,7 +2006,7 @@ Status NativeProcessLinux::PtraceWrapper(int req, lldb::pid_t pid, void *addr,
20062006 addr, data);
20072007
20082008 if (ret == -1 )
2009- error. SetErrorToErrno ();
2009+ error = Status::FromErrno ();
20102010
20112011 if (result)
20122012 *result = ret;
0 commit comments