]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
monitor: s/read()/lxc_read_nointr()/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 29 Jul 2018 22:00:00 +0000 (00:00 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 29 Jul 2018 22:16:34 +0000 (00:16 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/monitor.c

index d9f10c40b697f25eebd613f3391e67f5b78a25d1..c35b5e13fe5a5839ed722f43d6600475e7d7c713 100644 (file)
@@ -348,7 +348,7 @@ int lxc_monitord_spawn(const char *lxcpath)
                 * synced with the child process. the if-empty-statement
                 * construct is to quiet the warn-unused-result warning.
                 */
-               if (read(pipefd[0], &c, 1))
+               if (lxc_read_nointr(pipefd[0], &c, 1))
                        ;
 
                close(pipefd[0]);