[CRIU] [PATCH] soccr: print errno if connect() failed
Andrey Vagin
avagin at virtuozzo.com
Fri Sep 21 01:41:12 MSK 2018
https://github.com/checkpoint-restore/criu/issues/557
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
soccr/soccr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/soccr/soccr.c b/soccr/soccr.c
index d63a2ce2b..1e4827e48 100644
--- a/soccr/soccr.c
+++ b/soccr/soccr.c
@@ -526,7 +526,7 @@ static int libsoccr_set_sk_data_noq(struct libsoccr_sk *sk,
if (connect(sk->fd, &sk->dst_addr->sa, addr_size) == -1 &&
errno != EINPROGRESS) {
- loge("Can't connect inet socket back\n");
+ logerr("Can't connect inet socket back");
return -1;
}
--
2.14.4
More information about the CRIU
mailing list