From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Tury Newsgroups: gmane.emacs.help Subject: Re: asynchronous process management on WinWP; buffering problem? Date: Wed, 19 Apr 2006 15:05:20 GMT Organization: Nokia Message-ID: References: <10m877fael0h3.1kg7y6ljn4qmb$.dlg@40tude.net> <1k0k55zizf786.3gqg03imizca.dlg@40tude.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145461273 23701 80.91.229.2 (19 Apr 2006 15:41:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 15:41:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 19 17:41:12 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWEnZ-00035j-Jc for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 17:40:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWEnZ-0008EY-6A for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 11:40:57 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fi.sn.net!newsfeed2.fi.sn.net!newsfeed3.funet.fi!newsfeeds.funet.fi!195.197.54.118.MISMATCH!feeder2.news.jippii.net!feeder1.news.jippii.net!nntp.inet.fi!inet.fi!newsfeed1.nokia.com!news1.nokia.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: 40tude_Dialog/2.0.15.1 Original-Lines: 32 Original-NNTP-Posting-Host: 172.24.170.105 Original-X-Complaints-To: newsmaster@nokia.com Original-X-Trace: news1.nokia.com 1145459120 172.24.170.105 (Wed, 19 Apr 2006 18:05:20 EET DST) Original-NNTP-Posting-Date: Wed, 19 Apr 2006 18:05:20 EET DST Original-Xref: shelby.stanford.edu gnu.emacs.help:138844 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34462 Archived-At: On Sat, 15 Apr 2006 20:56:11 GMT, Peter Tury wrote: > Hi, > > thanks for all of your answers! They are pretty interesting and I am sure I > can learn a lot from them. Really. > > However, unfortunately my real problem is not with buffering (I think) > (maybe my subject is not so good). "I hope I could handle this through > filter functions." Instead "my bigger problem is that it seems that some > (too long?) data cannot be sent correctly. > > My question: do you know some easy "tricks" how to log/save/loopback/... > every bytes sent by Emacs to (the stdin for) an async. process?" > > Please help me in this also. So: how can I check what bytes exactly arrive > to the stdin for a process. I don't have the sources of the DOS program in > question and I didn't want to start writing a C DOS program for it. Well, finally I managed to get the sources of the DOS program + write my own loopback.c for testing and found the bug in the DOS program -- it is unrealted to Emacs ;-) ((The problem was it uses fgets to read a fixed amount of characters (from stdin) what causes in some cases the reading of the "first half" of some related data, and this "first half" is checked immediately, while its "second half" is missing (=still not read by the next fgets)... and executions stops when the incorrectness of the "first half" is revealed...)) Thanks for all of your help, P