On Dec 7 16:46, Aaron Schneider wrote: > On 07/12/2012 10:58, Corinna Vinschen wrote: > >Again, Cygwin supports SYSV IPC. Please inform the original author that > >the functionality depends on a running cygserver process. If this > >process is not running, the SYSV IPC functions return ENOSYS. > > > >IMHO there's no reason to exit if the msgget function returns ENOSYS. > >The code could simply note the fact and proceed, and only return an > >error if the user tried the -R option. > > > > The function has not returned ENOSYS, instead the process has > received a signal, according to gdb's output. This is arguably a bug > in Cygwin.
No, it isn't. Calling a non-existant function raises a SIGSYS signal. That's ok per POSIX (albeit it's an XSI extension). pv could simply call signal (SIGSYS, SIG_IGN) and then just fetch the error code returned from msgget. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat