POSIX or SYSV IPC calls on cygwin

2012-06-28 Thread Richard H Lee
I'm looking to use IPC calls on cygwin (shared memory and semaphores). The posix IPC api looks saner (easier), but it looks like it was only brought in in cygwin 1.7 . Am I better sticking to the SYSV IPC api? Or is the POSIX IPC api stable enough to use? -- Problem reports: http://cyg

gdbserver on cygwin

2012-06-29 Thread Richard H Lee
As of 2003 gdbserver was not supported on cygwin. Is it supported yet? -- 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

Re: FW: gdbserver on cygwin

2012-06-30 Thread Richard H Lee
On 30/06/2012 03:07, Buchbinder, Barry (NIH/NIAID) [E] wrote: >> Is it supported yet? > > http://cygwin.com/packages/ > http://cygwin.com/cgi-bin2/package-grep.cgi?grep=gdbserver But the gdbserver binary is not available from setup.exe . It does however compile and function correctly from source.

Re: FW: gdbserver on cygwin

2012-06-30 Thread Richard H Lee
On 30/06/2012 18:05, Christopher Faylor wrote: On Sat, Jun 30, 2012 at 04:22:03PM +0200, marco atzeri wrote: On 6/30/2012 3:18 PM, Richard H Lee wrote: On 30/06/2012 03:07, Buchbinder, Barry (NIH/NIAID) [E] wrote: >> Is it supported yet? > > http://cygwin.com/packag

Persistence of file implemented objects

2012-06-30 Thread Richard H Lee
Various objects like fifo pipes, POSIX IPC shared memory and semaphores that are implemented through the filesystem in cygwin persist when the program abnornally terminates. They also persist through reboots, which is different to the behaviour on linux. This is also different with the case of

Re: Persistence of file implemented objects

2012-07-01 Thread Richard H Lee
Fifos persist on reboot on Linux or Cygwin. They live on the filesystem. I don't see how POSIX IPC shared memory and semaphores could persist. Sorry, I meant unix/bsd sockets. Regarding the POSIX IPC's, they are stored in /dev . In regular *nix, /dev do not represent "physical" files on the

Phantom processes left over

2012-07-04 Thread Richard H Lee
Has anybody come across processes being left over? I'm extending an open source project. The functionality I'm adding is keeping track of running processes. I store the list of active processes in shared memory. When querying the list I also call kill with a 0 signal on all the entries to test

Basic gcc compilation on cygwin64

2013-07-22 Thread Richard H Lee
I'm trying to compile the following basic program on cygwin64: int main() { ; return 0; } But I get the following errors: $ gcc test.c /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld: cannot find -ladvapi32 /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-c

Re: Basic gcc compilation on cygwin64

2013-07-23 Thread Richard H Lee
On 23/07/2013 13:35, JonY wrote: Try rerunning setup again, there was a mistake in the w32api-runtime -1 release. -2 should have this fixed. Yeah, I just installed xxd 5 mins ago and I saw w32api-runtime flash up on the download bar. I figured that was the package and gave gcc another shot. I

Re: unable to run httpd with mod_rewrite

2019-02-26 Thread Richard H Lee
On 26/02/2019 10:30, jwang25...@gmail.com wrote: Hi Richard, Would you please shed some light on this (how to set the mutx for the rewrite map) as I am having the same issue? Thanks a lot in advance James My bad. I didn't check the error logs. Setting the mutex for the rewrite map in the conf

Fix for REAL_PAGE_SIZE in PHP

2017-05-02 Thread Richard H Lee
There is a bug with PHP on Cygwin where it segfaults if the php file size is a multiple of 4K. https://bugs.php.net/bug.php?id=65312 PHP mmap()s source files as it it faster than using normal I/O. The problem is with the page size in Cygwin. When a file is mmap()ed to memory, any remaining byte

[ATTN: PHP maintainer] Re: Fix for REAL_PAGE_SIZE in PHP

2017-05-04 Thread Richard H Lee
definition needs to be fixed in two places as there are two different places where a PHP source file can be mmap()ed, depending on whether it is loaded using php-cli or loaded when php is run from a library. On 02/05/2017 11:28, Richard H Lee wrote: Should this fix go upstream to PHP or be submitted to

Re: hdparm windows phisical disks question

2017-05-11 Thread Richard H Lee
What does ls /dev/hd* or ls /dev/sd* give you? On 11/05/2017 16:21, Emanuele Belfiore wrote: I'm using hdparm on windows, eg: hdparm -y /dev/hda My question is: if I have more than 26 phisical disks, what parameter I have to pass (/dev/hd?) ? -- Problem reports: http://cygwin.com/probl

Re: BUG: winmain GetCommandLine only returning program name and path with no arguments

2017-05-13 Thread Richard H Lee
It works when using the mingw cross compiler. On 13/05/2017 15:30, Mike Barry wrote: Below is a sample program that demonstrates that the GetCommandLine function is not returning the command line arguments. I attached cygcheck.out. #include #include int WINAPI WinMain(HINSTANCE hInst, HINST

Re: Composer segfault on multiple configurations

2017-05-17 Thread Richard H Lee
On 17/05/2017 20:17, Sky Diver wrote: Running "composer install" with the following composer.json ends up in a segmentation fault. -- START --- { "require": { "propel/propel": "~2.0@dev" }, "config": { "optimize-autoloader": true } }

Re: Composer segfault on multiple configurations

2017-05-18 Thread Richard H Lee
On 18/05/2017 13:34, Andrey Repin wrote: Try turning pcre.jit off, it was known to be a problem in the past. This is already turned off in the cygport patches. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://

[ATTN: Yaakov Selkowitz / PHP maintainer] Re: Composer segfault on multiple configurations

2017-05-19 Thread Richard H Lee
On 18/05/2017 08:42, Sky Diver wrote: Any idea when your fix will get released as an official cygwin PHP package? Hi Yaakov, I can see you're really busy with package maintenance and all, but I was wondering if you could review and merge my patch for this issue. It's basically changing the def

Re: 5 seconds to update link info?

2017-05-19 Thread Richard H Lee
On 19/05/2017 22:37, Andrey Repin wrote: When executed this oneliner over Samba 4.3 network share, it takes 5 seconds to match the newly created hardlink. I'm wondering if this is Cygwin, Samba or Windows networking issue? I think it's something to do with windows name resolution. Try running:

Re: 5 seconds to update link info?

2017-05-19 Thread Richard H Lee
On 19/05/2017 23:01, Richard H Lee wrote: On 19/05/2017 22:37, Andrey Repin wrote: When executed this oneliner over Samba 4.3 network share, it takes 5 seconds to match the newly created hardlink. I'm wondering if this is Cygwin, Samba or Windows networking issue? I think it's somet

Re: 5 seconds to update link info?

2017-05-20 Thread Richard H Lee
On 20/05/2017 01:39, Andrey Repin wrote: I've tried to disable NetBIOS over TCP/IP on client for all adapters active, but nothing has changed. You could always try using Wireshark to get more insight as to what is causing the delay. -- Problem reports: http://cygwin.com/problems.html FAQ

Re: ANSI colors not showing by default

2017-05-22 Thread Richard H Lee
On 21/05/2017 21:45, Sky Diver wrote: Lately I noticed that colors are not showing by default in some situations. The most apparent case is when running composer. The latest composer version on "Bash on Ubuntu on Windows" console, and even when running it via a mintty shell looks just fine. But

Re: Composer segfault on multiple configurations

2017-05-22 Thread Richard H Lee
On 18/05/2017 08:42, Sky Diver wrote: I may compile php from cygports Just in case Sky Diver or anyone else is interested in compiling php from Cygports, here are some simple steps to do so. It's not really difficult and most of the time it takes up is downloading the packages and compiling

Memcache/d (Orig: Re: Composer segfault on multiple configurations)

2017-05-25 Thread Richard H Lee
On 25/05/2017 08:50, Sky Diver wrote: Since then I went back in time and installed PHP 5.5.9, PHP 5.6.20 but the result is the same. PHP 5.5.9, PHP 5.6.2 on Cygwin? Were they even released on Cygwin? So I might end up following your steps in order to build PHP, hoping I could enable built-in m

Re: [ATTN: Yaakov Selkowitz / PHP maintainer] Re: Composer segfault on multiple configurations

2017-05-30 Thread Richard H Lee
Yaakov, I probably should have copied you in on the last message to get your attention. It's just a simple patch to fix this page size issue with php on Cygwin. Would be grateful if you could review and possibly accept this patch, as it has been confirmed and does affect several people. Ri

Git status delay

2017-11-18 Thread Richard H Lee
I have an issue with git where it hangs for 10 to 20 seconds on several commands, including "git status". For me this is reproducible on a fresh install of Cygwin x64 in Windows 7. I get the feeling I am doing something wrong on my end as "git status" is a very commonly used command, yet I see

Re: Git status delay

2017-11-20 Thread Richard H Lee
Can also confirm this on Windows 10. -- 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

Re: Cryptic characters at 4kboundary after ssh transfer

2017-12-09 Thread Richard H Lee
On 08/12/2017 13:39, Caduff Claudio DFRKSTA wrote: In some (about 1 of 100) of the transferred files there are cryptic characters (always 8 Bytes), always at an address which begins after 4k. Could this be related to any mmap calls? Cygwin mmaps in 4k blocks, but the caveat is that they are

Re: Git status delay

2017-12-11 Thread Richard H Lee
On 21/11/2017 10:27, Adam Dinwoodie wrote: (I believe this is a bug in Git, on the grounds that (a) Git in general supports POSIX systems and giving special meaning to paths starting with `\\` is allowed, if unusual, POSIX behaviour, and (b) Git specifically supports Cygwin, and this is very well

Re: Trouble running ssh-host-config

2018-03-01 Thread Richard H Lee
On 01/03/2018 04:06, Steve Kelem wrote: When I right-click cygwin.bat and run as Administrator, ssh-host-config -y gets the following errors: What happens if you try running cygwin as admin by running mintty as administrator (as opposed to cygwin.bat)? -- Problem reports: http://cygwin.c

Re: msmtp depends on Gnome!?

2018-03-28 Thread Richard H Lee
On 28/03/2018 22:50, Stephen Paul Carrier wrote: What's not light-weight is its dependency on libgnome-keyring0 which has more dependencies that eventually bring in Gnome. This is for a headless workstation. Gnome doesn't just contain the desktop libraries, it also contains the libraries for go

Re: inotify?

2018-05-03 Thread Richard H Lee
On 03/05/2018 10:35, Ulli Horlacher wrote: Is there a similar service "tell me of new files in this directory tree" in Windows which I can use instead? Windows does have its own file and directory watching API. -- Problem reports: http://cygwin.com/problems.html FAQ: htt

php memory errors

2020-06-19 Thread Richard H Lee via Cygwin
I've recently gotten out of memory errors with php, with tasks that previously have worked fine. Has anybody else experienced this too? -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsu