/*
- * Copyright (C) 2005-2011 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
struct iovec iov[2];
int ret, readv_ret, iovcnt;
- t->error = 0;
+ ret = task_get_notification(t);
+ if (ret < 0)
+ goto out;
ret = btr_node_status(btrn, 0, BTR_NT_ROOT);
if (ret <= 0)
goto out;
out:
if (ret >= 0)
return;
- btr_remove_node(btrn);
+ btr_remove_node(&rn->btrn);
t->error = ret;
close(rn->fd);
rn->fd = -1;