X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=oss_write.c;h=f075ce502900e03e3fb743229e9f6ca7c735725e;hp=d583c2338bb1dc0dc96d274d49824d45a3b75c6e;hb=d0d27cfa56d05eaa0e5567c75adfe606eab2957e;hpb=d7b4aa3835197ee906f13f515040e1cda6385544 diff --git a/oss_write.c b/oss_write.c index d583c233..f075ce50 100644 --- a/oss_write.c +++ b/oss_write.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2011 Andre Noll + * Copyright (C) 2009-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -10,7 +10,6 @@ #include #include #include -#include #include "para.h" #include "fd.h" @@ -190,7 +189,7 @@ static void oss_post_select(__a_unused struct sched *s, ret = 0; if (!FD_ISSET(powd->fd, &s->wfds)) goto out; - ret = write_nonblock(powd->fd, data, frames * powd->bytes_per_frame); + ret = xwrite(powd->fd, data, frames * powd->bytes_per_frame); if (ret < 0) goto out; btr_consume(btrn, ret);