delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/01/17/00:19:28

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:in-reply-to
:references:date; q=dns; s=default; b=Z5lxTUzW9XcSLW2CRkmZpBeRB2
+5I7+W/ZYu6LKu/vVw+54b1dylwZYjF/rixFh5l/sFdOqRqcLwSAc4az1iQsGf5A
bQLefQCIXQQxXam/KJc0u2fWN6RMpT3Cp4gP06f+9l7TsNESeQg9rLJ5mxO8FzJ4
Z/YIuRjZqzi5ghBPc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:in-reply-to
:references:date; s=default; bh=bt5FHAKSMsQE141h+R0ZW0IFtJw=; b=
X+gksAC5y+zNNT83L09OYHt8VeEXdyP9uF053LOA6nEjAtgYYHw2TRNFn1LA4V03
8WJFKS8KPBa3SfGs1E7XDRJNU5+zGcAfMAFrJFkYod11BNkyverPYdzw5OD+vzDy
uZCprLJ8YG4n4W/ZmqbZt52MoNCGsTq3VqgAdtQqdzA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: nm5-vm5.access.bullet.mail.gq1.yahoo.com
Message-ID: <491859.27055.bm@smtp113.sbc.mail.ne1.yahoo.com>
X-Yahoo-SMTP: BDVluRmswBBpb4.UU1_zlPhs_ysfXcBVjBNXyWpyS_6pPgE-
X-Rocket-Received: from solabel10.tnolan.com (tednolan AT 74 DOT 243 DOT 198 DOT 131 with plain [98.138.84.52]) by smtp113.sbc.mail.ne1.yahoo.com with SMTP; 17 Jan 2014 05:19:06 +0000 UTC
From: tednolan AT bellsouth DOT net
To: cygwin AT cygwin DOT com
Subject: Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54
In-reply-to: <20140116085026.GA26205@calimero.vinschen.de>
References: <831845 DOT 98759 DOT bm AT smtp116 DOT sbc DOT mail DOT ne1 DOT yahoo DOT com> <52D55D96 DOT 8070407 AT redhat DOT com> <946338 DOT 89157 DOT bm AT smtp116 DOT sbc DOT mail DOT ne1 DOT yahoo DOT com> <CAG9p0OR8JYgC1rzBCn1bvXe5ffpJS3vpmnnxw-7brJi8E8+uhQ AT mail DOT gmail DOT com> <52D63CE2 DOT 9060308 AT lysator DOT liu DOT se> <858084 DOT 71265 DOT bm AT smtp116 DOT sbc DOT mail DOT ne1 DOT yahoo DOT com> <20140115163354 DOT GA30234 AT calimero DOT vinschen DOT de> <670957 DOT 90887 DOT bm AT smtp117 DOT sbc DOT mail DOT ne1 DOT yahoo DOT com> <20140116085026 DOT GA26205 AT calimero DOT vinschen DOT de>
Comments: In-reply-to Corinna Vinschen <corinna-cygwin AT cygwin DOT com> message dated "Thu, 16 Jan 2014 09:50:26 +0100."
Date: Thu, 16 Jan 2014 23:53:59 -0500
X-IsSubscribed: yes

In message <20140116085026 DOT GA26205 AT calimero DOT vinschen DOT de>you write:
>
>Can you change your testcase another bit, please?  Enable your
>`ftell' printf, but rather than printing the result of ftell,
>print the result of lseek:
>
>  fprintf(stderr, "(%s) (%s) %d %ld\n", infile,
>        outfile, i, lseek(fileno(fp), 0, SEEK_CUR));
>
>I would be curious what happens on Solaris here.
>

OK,

I took the original test case and made your lseek change.  Here are
the Solaris & FreeBSD results.

Here is Solaris 9:

=====================SOLARIS========================
Script started on Thu Jan 16 23:47:20 2014
solabel10% ./a.out < test_data
(00.tif) (00.eps) 1 45
Running 0
child
(01.tif) (01.eps) 2 15
Running 1
child
(02.tif) (02.eps) 3 0
Running 2
child
(00.tif) (00.eps) 4 45
Running 3
child
(01.tif) (01.eps) 5 15
Running 4
child
(02.tif) (02.eps) 6 0
Running 5
child
(00.tif) (00.eps) 7 45
Running 6
(01.tif) (01.eps) 8 45
Running 7
(02.tif) (02.eps) 9 45
Running 8
Final wait
Final wait
Final wait
Final wait
Final wait
Final wait
Final wait
child
Final wait
child
child
Final wait
solabel10% exit
solabel10% 
script done on Thu Jan 16 23:47:29 2014
=====================END SOLARIS========================

Freebsd 4.9:

=====================FREEBSD 4.9========================
loft% ./a.out < test_data
(00.tif) (00.eps) 1 45
Running 0
(01.tif) (01.eps) 2 45
child
Running 1
(02.tif) (02.eps) 3 45
child
Running 2
Final wait
child
Final wait
Final wait
=====================END FREEBSD 4.9========================

FreeBSD 9.1:

=====================FREEBSD 9.1========================
(00.tif) (00.eps) 1 45
Running 0
(01.tif) (01.eps) 2 45
Running 1
(02.tif) (02.eps) 3 45
Running 2
Final wait
child
child
Final wait
Final wait
child
brookside% 
=====================END FREEBSD 9.1========================

FreeBSD 8.1:

=====================FREEBSD 8.1========================
%./a.out < test_data
(00.tif) (00.eps) 1 45
Running 0
(01.tif) (01.eps) 2 45
child
Running 1
(02.tif) (02.eps) 3 45
child
Running 2
Final wait
child
Final wait
Final wait
=====================END FREEBSD 8.1========================

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019