mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 15:27:31 +00:00
lxccontainer: s/read()/lxc_read_nointr()/g
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
2a2a676d04
commit
3e1e9db834
@ -2352,7 +2352,7 @@ static char **do_lxcapi_get_interfaces(struct lxc_container *c)
|
||||
/* close the write-end of the pipe */
|
||||
close(pipefd[1]);
|
||||
|
||||
while (read(pipefd[0], &interface, IFNAMSIZ) == IFNAMSIZ) {
|
||||
while (lxc_read_nointr(pipefd[0], &interface, IFNAMSIZ) == IFNAMSIZ) {
|
||||
interface[IFNAMSIZ - 1] = '\0';
|
||||
|
||||
if (array_contains(&interfaces, interface, count))
|
||||
@ -3342,7 +3342,7 @@ static int copy_file(const char *old, const char *new)
|
||||
}
|
||||
|
||||
while (1) {
|
||||
len = read(in, buf, 8096);
|
||||
len = lxc_read_nointr(in, buf, 8096);
|
||||
if (len < 0) {
|
||||
SYSERROR("Error reading old file %s", old);
|
||||
goto err;
|
||||
|
Loading…
Reference in New Issue
Block a user