Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-core: Commit

system/core


Commit MetaInfo

Revisionfe509fc8ee6bbb6d2378dcf0097004cfaba66919 (tree)
Time2019-03-28 19:36:05
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

libcutils: ignore a trivial error

Sometimes it complains: "add_tid_to_cgroup failed to write '1900'
(No space left on device); fd=11". I don't understand why.
The device should have enough space.

Just ignore this error.

Change Summary

Incremental Difference

--- a/libcutils/sched_policy.cpp
+++ b/libcutils/sched_policy.cpp
@@ -93,6 +93,8 @@ static int add_tid_to_cgroup(int tid, int fd)
9393 return 0;
9494 SLOGW("add_tid_to_cgroup failed to write '%s' (%s); fd=%d\n",
9595 ptr, strerror(errno), fd);
96+ if (errno == ENOSPC)
97+ return 0;
9698 errno = EINVAL;
9799 return -1;
98100 }
Show on old repository browser