Re: Unix pipes implementation

2004-01-12 Thread linamat
Sorry but it's unlikely. As I said, there is already a start of an implementation for this which I am unlikely to want to throw out. Ok. I expect to have a working fifo implementation in a couple of releases. How much of time could it take? Can I do something to decrease this delay? Cause I want

Re: Unix pipes implemented successfully

2004-01-11 Thread linamat
Sorry, but no. The CVS version of cygwin already has a stub of a fifo implementation and the device/fhandler stuff is much different than 1.5.5. But if I change the patch to be compliant with last CVS, should you change the answer? With respect, Sergey Samsi Internet service S.A. Moldtelecom

Re: Unix pipes implementation

2004-01-11 Thread linamat
Sorry but it's unlikely. As I said, there is already a start of an implementation for this which I am unlikely to want to throw out. Ok. I expect to have a working fifo implementation in a couple of releases. How much of time could it take? Can I do something to decrease this delay? Cause I

accept() problem after NT4.0 sp6a install

2003-12-10 Thread linamat
After I've installed sp6a on WinNT4.0, my network service stopped accepting client connections but makes bind() call successfully. Client part shows ECONNREFUSED while trying to connect(). I've tryed all cygwin1.dll versions since 1.3.22, but the problem remains. This code works well with those

Re: accept() problem after NT4.0 sp6a install

2003-12-10 Thread linamat
Recently I had pure sp6 but now - sp6a. According to M$ documentation if HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix\Q246009\Installed is set to 1, then you have sp6a. I have it. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

Re: accept() problem int NT4.0 after sp6a install

2003-12-10 Thread linamat
Sorry, I have reinstalled sp6a and now everything works! Thanks for help, Corinna. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ:

Re: Rsync + Win2k

2003-10-31 Thread linamat
As to event non-registered error, you can recompile rsync daemon binary with .res file indicating format of Windows resource. In .mc file you must indicate Facility=Application MessageId=0 MessageIdTypedef=DWORD. Use mc (from Novell) and windres to compile. After it you can insert into registry

Re: accept doesn't block while running as NT service

2003-08-22 Thread linamat
As Corinna said debugging could help and she was right. One of my functions closed file descriptors 0 and 1 after successfull listen() call. Socket fd is 0 in my case. And so accept()'s errno was EBADF. Now my service is working. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Re : accept() doesn't block while running as NT service

2003-08-20 Thread linamat
But if I do CreateService() with NT AUTHORITY\NetworkService, or if I try to setuid() (cygwin-1.3.22) to switch to .\\Administrator privileges from SYSTEM, the problem still remains. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

Re: accept doesn't block while running as NT service

2003-08-20 Thread linamat
SYSTEM can use network resources without doubts, because UNIX domain socket works under NT service, inetd also works as NT service. Turning to accept() problem errno was set to EBADF. I parsed fhandler_socket.cc's method accept(); there are 2 places where EBADF might be set: 1st after sock_event

accept() doesn't block while running as NT service

2003-08-19 Thread linamat
I have a problem with accept() on TCP socket. Al things works well when I start the program under .\\Administrator credentials, but fails in NT service. { struct sockaddr_in sa; int sa_len = sizeof sa; for (;;) { t = accept(s,(struct sockaddr *)sa,sa_len); if (t == -1) continue;

Re: accept() doesn't block while running as NT service

2003-08-19 Thread linamat
The problem exists under Win2k sp4, cygwin-1.3.22 and cygwin-1.5.2. Anyhow an explanation would be much appreciated. I've read cygrunsrv last version and inetd sources, but couldn't find any error in my code. Some parameters from CreateService() which I used: SERVICE_WIN32_OWN_PROCESS

Re: qmail cygwin port successfull

2003-05-29 Thread linamat
And you mention MySQL. Do you have recent version of MySQL server built on top of Cygwin? Is there a patch or a binary somewhere too? You may not have problems with compiling mysql-3.23.56 under Cygwin. If you need DLL headers, tell me address and I'll send you this one. Sergey. --

Re: qmail cygwin port successfull

2003-05-29 Thread linamat
Wouldn't it be nice to have somebody volunteering to become Cygwin package maintainer for qmail? ;-) It would be really good. I just finished implementing AUTH DIGEST-MD5 for qmail and intensive looking for Win32 MUA which supports it... I have such plans: - to do AUTH NTLM support, - to add a

Re: qmail cygwin port successfull

2003-05-29 Thread linamat
Wouldn't it be nice to have somebody volunteering to become Cygwin package maintainer for qmail? ;-) /broad hint Note about qmail distribution: http://cr.yp.to/qmail/dist.html You are right, of course, it need to get him (professor Dan Bernstein) approval. Sergey. -- Unsubscribe info:

Re: qmail cygwin port successfull

2003-05-29 Thread linamat
The client is not the problem, I have compiled my own version of MySQL, including client dll and server. What I want is the server running on top of Cygwin (well, I know it is ported to Windows and runs faster without Cygwin, but just for fun I want it running on Cygwin too), unfortunately the

Re: qmail port successfull

2003-05-29 Thread linamat
Note about qmail distribution: http://cr.yp.to/qmail/dist.html You are right, of course, it need to get him (professor Dan Bernstein) approval. To cgf: Yes, I must forget about sharing Win32 binaries. Sergey. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

qmail cygwin port successfull

2003-05-28 Thread linamat
I am successfully ported qmail-1.03 and it seems to work good. I've replaced flock() with fcntl() such as somebody did from one japan site. Problem with spooling (absent mkfifo() and UNIX named pipe implementation under Cygwin) was resolved by turning to UNIX socket. The only one problem that the