system/core
Revisión | fe509fc8ee6bbb6d2378dcf0097004cfaba66919 (tree) |
---|---|
Tiempo | 2019-03-28 19:36:05 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
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.
@@ -93,6 +93,8 @@ static int add_tid_to_cgroup(int tid, int fd) | ||
93 | 93 | return 0; |
94 | 94 | SLOGW("add_tid_to_cgroup failed to write '%s' (%s); fd=%d\n", |
95 | 95 | ptr, strerror(errno), fd); |
96 | + if (errno == ENOSPC) | |
97 | + return 0; | |
96 | 98 | errno = EINVAL; |
97 | 99 | return -1; |
98 | 100 | } |