diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-14 20:48:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-14 20:48:53 +0000 |
commit | e2f3591ee5cbb13269e27b8b606197af4f74051a (patch) | |
tree | 994a5eeca2ffa9e5afce1b5156e0304e569068bd /usr.sbin/ikectl | |
parent | 38a71f576c3cd15854733df33366092017762dbe (diff) |
cope with the EAGAIN API change for msgbuf_write()
ok benno
Diffstat (limited to 'usr.sbin/ikectl')
-rw-r--r-- | usr.sbin/ikectl/ikectl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ikectl/ikectl.c b/usr.sbin/ikectl/ikectl.c index c1fb1dd3545..1c5a04eef91 100644 --- a/usr.sbin/ikectl/ikectl.c +++ b/usr.sbin/ikectl/ikectl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikectl.c,v 1.17 2013/08/16 19:47:42 guenther Exp $ */ +/* $OpenBSD: ikectl.c,v 1.18 2013/11/14 20:48:52 deraadt Exp $ */ /* * Copyright (c) 2007-2013 Reyk Floeter <reyk@openbsd.org> @@ -313,7 +313,7 @@ main(int argc, char *argv[]) } while (ibuf->w.queued) - if (msgbuf_write(&ibuf->w) < 0) + if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN) err(1, "write error"); while (!done) { |