fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54

2014-01-13 Thread tednolan
Hello, I'm running: CYGWIN_NT-6.1 prog5 1.7.27(0.271/5/3) 2013-12-09 11:54 x86_64 Cygwin gcc (GCC) 4.8.2 on a 64 bit Win7 system. I have just run into an odd bug, which I have boiled down into the program below (which started as a mod to tiff2ps). If you compile this program:

Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54

2014-01-14 Thread tednolan
In message 52d55d96.8070...@redhat.comyou write: Your program may be violating POSIX, which would trigger undefined behavior. Quoting POSIX: pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_05 [long quote elided] Yikes! That's pretty impenatrable. And if it says

Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54

2014-01-15 Thread tednolan
In message 52d63ce2.9060...@lysator.liu.seyou write: On 2014-01-15 05:53, Lord Laraby wrote: On Tue, Jan 14, 2014 at 10:50 AM, Ted Nolan wrote: In message 52d55d96.8070...@redhat.com you write: Your program may be violating POSIX, which would trigger undefined behavio r. Quoting POSIX:

Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54

2014-01-15 Thread tednolan
In message 20140115163354.ga30...@calimero.vinschen.deyou write: --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jan 15 10:28, tedno...@bellsouth.net wrote: In message 52d63ce2.9060...@lysator.liu.seyou write:

Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54

2014-01-16 Thread tednolan
In message 20140116085026.ga26...@calimero.vinschen.deyou 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,

Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54

2014-01-17 Thread tednolan
In message 52d98e1d.8010...@redhat.comyou write: No. You have to fix things _in the parent, before the fork()_ for everything to be hunky-dory. The easiest way to do that is to fflush(NULL) before fork()ing. You learn something new every day. Usually just after you needed to know it. --

Re: Windows 7 64 Bit - Mounting Network Drives

2014-01-24 Thread tednolan
In message a85cced36f59429ab961dec7c79b4...@bl2pr02mb449.namprd02.prod.outlook .comyou write: Windows Explorer readily shows drives H: and Z:. That looks like they are reall y mounted to me, but I wouldn't know what constitutes a rigorous test or even w hat the definition of really mounted

Re: How big are your /etc/passwd and /etc/group files?

2014-01-31 Thread tednolan
In message 52ec4727.2000...@gmail.comyou write: On 1/31/2014 5:03 PM, Corinna Vinschen wrote: On Jan 31 22:40, Frank Fesevur wrote: 2014-01-31 Corinna Vinschen: Is anybody here who's using /etc/passwd and/or group files of more than 16K in size? The new way to store the stuff would make

Re: libtool: link: object name conflicts in archive

2014-04-16 Thread tednolan
In message 20140416080331.gn3...@calimero.vinschen.deyou write: --KC+fneiph5CALyUl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ../../libtool: line 1117: lib: command not found This is *so* wrong. That's very likely a problem in

Wow, just hit RCS bug

2014-04-16 Thread tednolan
I just hit the worst Cygwin bug I've encountered, the RCS bug which silently corrupts text files 256K. That's the last thing I expect from a version control system! After some moments of panic, I was able to retrieve a good copy from backups, but have lost my revision history. Anyway, I

Re: Wow, just hit RCS bug

2014-04-16 Thread tednolan
In message 87bnw12nuu.fsf@Rainer.invalidyou write: tedno...@bellsouth.net writes: Just for the record, the suggested env var fix RCS_MEM_LIMIT=0 to force stdio does not work for me, but the That was never suggested as a fix, but to show that the problem occurs with files much less than

Re: Wow, just hit RCS bug

2014-04-16 Thread tednolan
In message CAFWoy7HdXgKXnPKNTsEUo38ttbj=fcr4krrolnsyxdvfuof...@mail.gmail.com you write: RCS does a great job for smaller projects when I don't need the overhead of any of the popular larger systems. It has saved me many times when I'm working on a short document or a set of scripts on my desktop

Has anyone built Linux Firefox on cygwin?

2014-05-12 Thread tednolan
I would like to have a native X11 cygwin Firefox. Has anyone been able to build this? As I recall, it was a bear to build even under Linux, and when I started trying to do it under cygwin a few months ago I went down a rathole somewhere and never did get anything working before I had to move on.

Re: How to set big font for xterm in cygwin/X

2014-06-04 Thread tednolan
In message 92c60106-8a54-434b-a470-744b8e4d4...@gmail.comyou write: Now I can use cygwin/X to run gtk3-demo, but my eyes is bad and xterm font = in cygwin/X is very small, how can I set to bigger font for xterm? Thanks a= lot.= Well, if you hold down the ctrl key and hit the right mouse button,

Re: Cygwin on Max OS X ?

2014-06-05 Thread tednolan
In message col129-w5d99d52355f33d9159fa1cb...@phx.gblyou write: I have an iMac 27 64-bit words running OS X Mavericks. Can I install Cygwin on my iMac? I know it's not necessary, but I thought it might be helpful for working on system porting/compatibility problems. Dick McCullough Only in the

ezmlm problems with yahoo/ATT senders

2014-06-30 Thread tednolan
I've tried reporting this several different ways, apparently into a black hole, so I'll try it here on the front list. I preiodically get messages from ezmlm to the effect Hi! This is the ezmlm program. I'm managing the cygwin#cygwin.com mailing list. Messages to you

Re: ezmlm problems with yahoo/ATT senders

2014-06-30 Thread tednolan
In message 53b16935.4040...@cygwin.comyou write: On 06/30/2014 08:05 AM, tednolan wrote: been obvious to you but your email to the list on this topic usurped a thread on a totally different subject. https://cygwin.com/ml/cygwin/2014-06/msg00443.html We ask that email sent to this list that isn't

Re: Cannot exec() program outside of /bin if PATH is unset

2014-10-09 Thread tednolan
In message 20141009162906.ga25...@calimero.vinschen.deyou write: Any other idea what *might* be broken if we remove CWD from the DLL search path? Corinna I'm pretty sure I've got some programs loading Tcl extensions that cd into the directory with the extension dlls, load the extension and

Re: Cannot exec() program outside of /bin if PATH is unset

2014-10-10 Thread tednolan
In message CAMCbSMrar1Zu4p6gN=gc8-xqe-8rutmp3er0ujen--chkzc...@mail.gmail.com you write: This might the way the pkgIndex.tcl file for this particular extension has been implemented, but like Jan says, that is not the Tcl way. Here is a sample that illustrates the more acceptable procedure: # Tcl