RE: Cygwin IPC - ftok() returns negative values - Bug Report

2016-06-29 Thread Stanisław Wawszczak
> > Do you have the cygserver service running? (See > /usr/share/doc/Cygwin/cygserver.README.) > > Ken Yes, I have. And I have believed that defaults are as stated in config file, but they aren't. Just after uncommenting the kern.ipc.semmsl 60 config line and restarting the cygserver it

RE: Cygwin IPC - ftok() returns negative values - Bug Report

2016-06-29 Thread Stanisław Wawszczak
>On 29/06/2016 18:06, Stanisław Wawszczak wrote: >> Dear Corinna, >> >> I am sorry about confusing you. >> Simply: >> >> - Issue >> >> Call to ftok() returns negative value

RE: Cygwin IPC - ftok() returns negative values - Bug Report

2016-06-29 Thread Stanisław Wawszczak
-- $ ./test.exe started semHandle <= 0 ; (semHandle = -5833568887996598975) finished Pozdrawiam/Best Regards, Stanisław Wawszczak Architekt Systemowy ISCG Sp. z o.o. Poland -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of Cori

Cygwin IPC - ftok() returns negative values - Bug Report

2016-06-29 Thread Stanisław Wawszczak
Dear All,   I have had to compile sblim-sfcbd-1.4.10 on Cygwin. It is using IPC semaphores. Unfortunately it is returning wrong value as the result of complicated bit-wise logical operations. I have tried to “hack the system” and make multiplication of returned value by -1, but it triggers error