Be sure errors on wite are passed back up (bug #2311)
authorMark Spencer <markster@digium.com>
Fri, 27 Aug 2004 16:17:16 +0000 (16:17 +0000)
committerMark Spencer <markster@digium.com>
Fri, 27 Aug 2004 16:17:16 +0000 (16:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3666 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_modem.c

index 6113e08..c2f3bf0 100755 (executable)
@@ -506,7 +506,7 @@ static int modem_write(struct ast_channel *ast, struct ast_frame *frame)
 
        /* Block again */
        fcntl(ast->fds[0], F_SETFL, flags);
-       return 0;
+       return res;
 }
 
 struct ast_channel *ast_modem_new(struct ast_modem_pvt *i, int state)