Message ID | 1450312802-4938-39-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/splice.c b/fs/splice.c index f345d53..4eef647 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -871,6 +871,13 @@ EXPORT_SYMBOL(splice_from_pipe_feed); */ int splice_from_pipe_next(struct pipe_inode_info *pipe, struct splice_desc *sd) { + /* + * Check for signal early to make process killable when there are + * always buffers available + */ + if (signal_pending(current)) + return -ERESTARTSYS; + while (!pipe->nrbufs) { if (!pipe->writers) return 0;