@@ -203,12 +203,12 @@ static Status EnsureFDFlags(int fd, int flags) {
203
203
204
204
int status = fcntl (fd, F_GETFL);
205
205
if (status == -1 ) {
206
- error. SetErrorToErrno ();
206
+ error = Status::FromErrno ();
207
207
return error;
208
208
}
209
209
210
210
if (fcntl (fd, F_SETFL, status | flags) == -1 ) {
211
- error. SetErrorToErrno ();
211
+ error = Status::FromErrno ();
212
212
return error;
213
213
}
214
214
@@ -1078,7 +1078,7 @@ Status NativeProcessLinux::Halt() {
1078
1078
Status error;
1079
1079
1080
1080
if (kill (GetID (), SIGSTOP) != 0 )
1081
- error. SetErrorToErrno ();
1081
+ error = Status::FromErrno ();
1082
1082
1083
1083
return error;
1084
1084
}
@@ -1114,7 +1114,7 @@ Status NativeProcessLinux::Signal(int signo) {
1114
1114
Host::GetSignalAsCString (signo), GetID ());
1115
1115
1116
1116
if (kill (GetID (), signo))
1117
- error. SetErrorToErrno ();
1117
+ error = Status::FromErrno ();
1118
1118
1119
1119
return error;
1120
1120
}
@@ -1191,7 +1191,7 @@ Status NativeProcessLinux::Kill() {
1191
1191
}
1192
1192
1193
1193
if (kill (GetID (), SIGKILL) != 0 ) {
1194
- error. SetErrorToErrno ();
1194
+ error = Status::FromErrno ();
1195
1195
return error;
1196
1196
}
1197
1197
@@ -2006,7 +2006,7 @@ Status NativeProcessLinux::PtraceWrapper(int req, lldb::pid_t pid, void *addr,
2006
2006
addr, data);
2007
2007
2008
2008
if (ret == -1 )
2009
- error. SetErrorToErrno ();
2009
+ error = Status::FromErrno ();
2010
2010
2011
2011
if (result)
2012
2012
*result = ret;
0 commit comments