Re: Bad mirros

2004-12-16 Thread Jacek Trzmiel
Siegfried Heintze wrote: I've been trying for weeks to upgrade my Cygwin installation but the setup program, after I have spent 15 or 20 minutes selecting the software I want, comes back and says the download is aborted, would I like to try again? Maybe it has been already fixed in setup, but

find prints wrong file size for files 2GB

2004-12-06 Thread Jacek Trzmiel
Win2kSP4+patches, cygwin1.dll 1.5.11, findutils 4.1.7-4 Test case below. $ cat truncate.c EOF #include unistd.h #include stdio.h #include stdlib.h #include errno.h int main(int argc, char **argv) { off_t size; char *endptr = argv[2]; if (argc != 3) { fprintf(stderr, usage:

Re: make doesn't work!

2004-11-24 Thread Jacek Trzmiel
I have been searching the answer for my problem for some while but didn't get anything useful. Searching on google for: windows32_openpipe unable to launch process, leads to information about old bug in make:

Re: Cron malfunction after date change

2004-11-08 Thread Jacek Trzmiel
Xavier Nodet wrote: On Thu, 04 Nov 2004 15:37:12 +0100 Jacek Trzmiel wrote: cygwin1.dll 1.5.11-1, win2ksp4+patches Cron is a separate package, that was updated on 20th, October, to correct a problem where cron would endlessly sleep after a time/date change. Do you have the latest version

Cron malfunction after date change

2004-11-04 Thread Jacek Trzmiel
cygwin1.dll 1.5.11-1, win2ksp4+patches Steps to reproduce: 1. Start cron: cygrunsrv --stop cron cygrunsrv --remove cron cygrunsrv --install cron -p /usr/sbin/cron -a -D -i cygrunsrv --start cron 2. Add task to cron to start at specified time (about 3 minutes from now) every day. I.e. something

Setup.exe: Can't download sources for older (not latest) version of port

2004-10-27 Thread Jacek Trzmiel
setup.exe 2.427, win2ksp4+patches Steps to reproduce: 1. Start setup.exe 2. Click Next 3. Select Download from Internet 4. Click Next 5. Browse for download directory 6. Click Next 7. Select Direct Connection 8. Click Next 9. Select ftp://ftp-stud.fht.esslingen.de; 10. Click Next 11. In

Subversion: Bad handling of svn:eol-style native on textmode mounts

2004-10-26 Thread Jacek Trzmiel
svn checkout of file with svn:eol-style set to native does create: a) on binary mount - file with unix endlines, b) on text mode mount - also file with unix endlines. I assume that correct behaviour in second case should be to create file with windows endlines. Is my assumption correct, and

Re: SYSTEM-owned shell shortcut (Was Re: xinetd Permissions; IMAP server)

2004-08-28 Thread Jacek Trzmiel
I've attached my sysbash, which WFM. Who knows there might be problems with it too ;-P It does display wrong number of seconds to start. Patch attached :) Besides there is small chance, that if run e.g. at 14:07:59 it will not manage to execute at command before 14:08:00, thus sheduling job

Re: Compilation errors not shown properly in Cygwin

2004-08-21 Thread Jacek Trzmiel
Larry Hall wrote: Sounds like a tty thing to me. Try adding to your CYGWIN environment variable 'notty' and starting a new cygwin.bat. I've added CYGWIN environment variable: System Properties/Advanced/Environment Variables/System variables/New... Variable Name: CYGWIN Variable Value: notty

Re: Compilation errors not shown properly in Cygwin

2004-08-20 Thread Jacek Trzmiel
Rajagopalan, Karthik wrote: [...] I am trying to compile a C program through Makefile from Cygwin. This C program has syntax errors which are supposed to be shown by Cygwin when running C compiler. It just indicates the following lines and stops : make: *** [/cygdrive/h/test.obj] Error 1

Cannot send *.zip attachement to cygwin mailing list

2004-08-20 Thread Jacek Trzmiel
I've tried to send mail with *.zip attachement to cygwin mailing list, but got this error: Subject: failure notice Hi. This is the qmail-send program at home.pl. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it

Re: Mounted text mode but acting binary

2004-08-09 Thread Jacek Trzmiel
So, grep appears to be acting as if the current directory is binary mode, but the mount table shows it as text mode. What am I missing? e:\mas\mmb\sql\ap on /e/mas/mmb/sql/ap type system (textmode) e: on /e type user (binmode,noumount) I'm in the e:\mas\mmb\sql\ap directory when I'm

Re: Mounted text mode but acting binary

2004-08-09 Thread Jacek Trzmiel
Jacek's message hit the nail on the head. I downloaded the most recent snapshot, and it works. So it was a Cygwin bug (although Pierre's message seems to indicate it didn't manifest itself in 1.5.9, that's where I saw it originally; I only dl'd 1.5.10 to eliminate 1.5.9 as the problem).

Re: STL std::random_shuffle behavior fails with lrand48 (workaround)

2004-08-03 Thread Jacek Trzmiel
If someone else could demonstrate that the bug exists on other platforms, I would be grateful. I've compiled and run code from: http://cygwin.com/ml/cygwin/2004-07/msg01118.html on Cygwin and FreeBSD machine: cygwin1.dll snapshot 20040720-12:03:09: $ g++ --version g++ (GCC) 3.3.1 (cygming

svn diff fails in textmode dir

2004-07-22 Thread Jacek Trzmiel
Subversion does have problem with doing diff inside working copy checked out on textmode mounted path. Win2kSP4 + all updates cygwin1-20040720 snapshot subversion-1.0.5-1 $ mount | grep work d: on /work type system (textmode) $ svnadmin create /svn $ mkdir -p /work/tmp/testdir $ cd /work/tmp/

Re: ssh become slower and slower?

2004-06-15 Thread Jacek Trzmiel
Xuefer wrote: winxp P3 866 after reboot, ssh seems as fast as telnet(almost same as local, no network issue) but after long time using ssh, it become slower and slower, taking more and more cpu time i hold down space key, the system process shown in taskmgr.exe is 98% released the key, the

Re: sys.executable broken under 2.3.4

2004-06-12 Thread Jacek Trzmiel
John P. Rouillard wrote: When running python -c import sys; print sys.executable it prints the current working directory rather than the path to python unless I invoke python with the full path. I can't reproduce this on a win 98 box, but on a windows 2k sp4 things are broken. Can

Re: cvs checkout fails in directory that can be accessed via both textmode and binmode mounts

2004-06-04 Thread Jacek Trzmiel
Hi Pierre, You have exposed an old bug in Cygwin. [...] I am wondering why the bug is not exposed in 1.5.9 Care to strace it? Well, the same thing happens in: cygwin 1.5.9 / cvs 1.11.6-3 cygwin 1.5.5 / cvs 1.11.6-3 I guess that I either checked out this directory somewhere else and moved it

Re: cvs checkout fails in directory that can be accessed via both textmode and binmode mounts

2004-06-03 Thread Jacek Trzmiel
Jacek Trzmiel wrote: $ mkdir /testmnt/cygwin/test $ cd /testmnt/cygwin/test $ cvs -d /testmnt/cvsrep co prj : No such file or directoryirectory /testmnt/cvsrep/prj cvs checkout: skipping directory prj Some additional info: cygwin 1.5.10-3: $ cvs -d /testmnt/cvsrep co prj Checkout does

cvs checkout fails in directory that can be accessed via both textmode and binmode mounts

2004-06-02 Thread Jacek Trzmiel
Win2kSP4, cygwin1-20040530.dll snapshot, cvs 1.11.6-3 $ mount -ft c:\\ /testmnt $ mount C:\cygwin on / type system (binmode) c: on /sys type system (textmode) c: on /testmnt type system (textmode) snip $ mkdir /testmnt/cvsrep $ cvs -d /testmnt/cvsrep init $ mkdir prj $ cd prj $ echo test test $

Re: No endline conversion while in dir that can be reached via both textmode and binmode mounts

2004-05-29 Thread Jacek Trzmiel
Bug or a feature? Shouldn't /test/cygwin/t/d be 3 bytes long as well? I recall it working properly (i.e. converting to windows endlines) when inside such directory some time ago. Thanks for the report. It should be fixed in the May 28 snapshot.

No endline conversion while in dir that can be reached via both textmode and binmode mounts

2004-05-28 Thread Jacek Trzmiel
Win2kSP4, cygwin1-20040527.dll snapshot $ mount -ft c:\\ /test $ mount C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type system (binmode) c: on

How to launch gui app from cron

2004-05-28 Thread Jacek Trzmiel
Hi all, Win2kSP4, cygwin1-20040527.dll snapshot I've added something like this via crontab -e: 0 11 * * * C:/WINNT/system32/dllcache/iexplore.exe That does start iexplore.exe (I can find process in Task Manager), however it does not show its window on desktop. How can I start win app from

Re: How to launch gui app from cron

2004-05-28 Thread Jacek Trzmiel
Tomasz Rojek wrote: How can I start win app from cron, so that gui is visible? I would register cron as a service with option -i, or --interactive (Allow service to interact with the desktop). HTH Thanks, it does work. Gui app launched from cron does show on desktop after: $ cygrunsrv

Re: [Patch] Fix gethwnd race

2004-05-07 Thread Jacek Trzmiel
On Thu, May 06, 2004 at 07:18:39PM -0500, Brian Ford wrote: Although not the complete rewrite you may have been hoping for, the attached patch does appear to fix the: Winmain: Cannot register window class, Win32 error 1410 portion of this bug:

Re: [Patch] Fix gethwnd race

2004-05-07 Thread Jacek Trzmiel
that this is really a situation that qualifies for either. It seems like a muto is a cleaner choice here. On Fri, May 07, 2004 at 04:51:42PM +0200, Jacek Trzmiel wrote: I can change it to use critical section. I just have one question - where would be good place to put InitializeCriticalSection call

Re: gethostname is thread-safe?

2004-05-07 Thread Jacek Trzmiel
THE ERROR IS: ERROR gethostbyname() failed, h_errno=-1 Description: (null) ERROR socket() failed, Errno= 1 Description: Operation not permitted http://cygwin.com/ml/cygwin/2004-05/msg00191.html Best regards, Jacek. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem

Re: pthreads and sockets - Cannot register window class error

2004-05-05 Thread Jacek Trzmiel
Hi Brian, void test() { /* go find out about the desired host machine */ struct hostent *he = gethostbyname(HOST); if (he == 0) { perror(gethostbyname); exit(1); } Just a wild guess, but gethostbyname() is probably not reentrant and can't be

Re: pthreads and sockets - Cannot register window class error

2004-05-05 Thread Jacek Trzmiel
Hi Reini, But we already found out that the culprit was Norton Firewall, closing your socket, wasn't it? NIS is gone. Best regards, Jacek. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation:

Re: pthreads and sockets - Cannot register window class error

2004-05-05 Thread Jacek Trzmiel
Hi, I can't replicate your problem, but I know where it is coming from, basically standard windows winsock is not geared up to handle that man socket connections. When a socket is made and then closed the socket actually stays open for about 240-300 seconds depending on your registry

Re: pthreads and sockets - Cannot register window class error

2004-05-05 Thread Jacek Trzmiel
void test() { /* go find out about the desired host machine */ struct hostent *he = gethostbyname(HOST); if (he == 0) { perror(gethostbyname); exit(1); } Just a wild guess, but gethostbyname() is probably not reentrant and can't be called from

Re: pthreads and sockets - Cannot register window class error

2004-05-05 Thread Jacek Trzmiel
Hi Brian, $ g++ GetHostByNameTest.cpp -lpthread -o GetHostByNameTest.exe ./GetHostByNameTest.exe gethostbyname: Operation not permitted Win2k SP4 + hotfixes. Can someone reproduce it? Sure looks alot like this: http://www.cygwin.com/ml/cygwin/2004-04/msg00545.html have you

Re: shutdown( socket, SHUT_WR ) - unexpected behaviour

2004-05-04 Thread Jacek Trzmiel
Hi Dave, Just kind of wondering if the apache is prematurely dropping the line when it sees the FIN. No it doesn't. Here is dump when connecting to example.org: 01:14:34.237976 win2k.3042 example.org.80: S 3273603871:3273603871(0) win 16384 mss 1460,nop,nop,sackOK (DF) 01:14:34.423719

Re: shutdown( socket, SHUT_WR ) - unexpected behaviour

2004-05-04 Thread Jacek Trzmiel
Hi, Just kind of wondering if the apache is prematurely dropping the line when it sees the FIN. Possible, but I suspect it's a problem on Jacek's machine. Yep, that's most likely. Jacek: Win2K SP2 is pretty ancient. Is it possible to try this on a later SP? (SP4 is the latest, and

Re: shutdown( socket, SHUT_WR ) - unexpected behaviour

2004-05-04 Thread Jacek Trzmiel
Hannu E K Nevalainen wrote: $ g++ ShutdownTest.cpp -o ShutdownTest ./ShutdownTest.exe HTTP/1.1 200 OK Date: Tue, 04 May 2004 14:02:39 GMT Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT [...] $ uname -a CYGWIN_NT-5.0 P450 1.5.10s(0.114/4/2)

Re: shutdown( socket, SHUT_WR ) - unexpected behaviour - RESOLVED

2004-05-04 Thread Jacek Trzmiel
Possible, but I suspect it's a problem on Jacek's machine. Jacek: Win2K SP2 is pretty ancient. Is it possible to try this on a later SP? (SP4 is the latest, and there have been numerous hotfixes since it was released.) I've installed SP4 (had most of hotfixes already) but it didn't fix

Re: shutdown( socket, SHUT_WR ) - unexpected behaviour

2004-05-03 Thread Jacek Trzmiel
I've tried your application and I'm not able to reproduce your problem. The shutdown call does not influence sending the buffered data apparently. Thanks for info. I've tested with Cygwin 1.5.9 and with a recent snapshot on XP SP1. What's your system? Cygwin 1.5.9, Win2kSP2. I made

shutdown( socket, SHUT_WR ) - unexpected behaviour

2004-05-01 Thread Jacek Trzmiel
Hi, $ cygcheck -cd cygwin Cygwin Package Information Package Version cygwin 1.5.9-1 I found some unexpected behaviour of shutdown call. Here is example program to reproduce problem. It is supposed to send simple http request to example.org,