]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/splice.c
signals: distinguish signals sent due to i/o via io_send_sig()
[karo-tx-linux.git] / fs / splice.c
index 4cf700d50b4037e6c334b0647cdb81b816f9ef65..336db781a7617fc5caeb07b71df275a64485ea99 100644 (file)
@@ -193,7 +193,7 @@ ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
 
        for (;;) {
                if (!pipe->readers) {
-                       send_sig(SIGPIPE, current, 0);
+                       io_send_sig(SIGPIPE);
                        if (!ret)
                                ret = -EPIPE;
                        break;
@@ -1769,7 +1769,7 @@ static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
 
        while (pipe->nrbufs >= pipe->buffers) {
                if (!pipe->readers) {
-                       send_sig(SIGPIPE, current, 0);
+                       io_send_sig(SIGPIPE);
                        ret = -EPIPE;
                        break;
                }
@@ -1820,7 +1820,7 @@ retry:
 
        do {
                if (!opipe->readers) {
-                       send_sig(SIGPIPE, current, 0);
+                       io_send_sig(SIGPIPE);
                        if (!ret)
                                ret = -EPIPE;
                        break;
@@ -1924,7 +1924,7 @@ static int link_pipe(struct pipe_inode_info *ipipe,
 
        do {
                if (!opipe->readers) {
-                       send_sig(SIGPIPE, current, 0);
+                       io_send_sig(SIGPIPE);
                        if (!ret)
                                ret = -EPIPE;
                        break;