Thanks for confirming for me that cygwin can't do this with fork().
I guess I'll have to warn them about this difference in cygwin. I was
hoping I had made a mistake somewhere.
On Sat, Feb 23, 2019 at 6:54 AM Doug Henderson wrote:
>
> On Fri, 22 Feb 2019 at 17:01, Glyn Gowing
Thanks.
// smtest2.c
//
// Dr. Glyn Gowing
// LeTourneau University
// COSC 4653 - Advanced Networks
//
// This program demonstrates how to use a lock with fork()ed processes by using
// shared memory.
#include // needed for printf
#include // needed for mmap
#include // need
#x27;ll either attempt to upgrade or seek a new maintainer, which might
> take a bit of time, my apologies!
> Bob
Great, thanks. I'm glad to know it's not a mystery, because I
imagine it would would have been quite a big one! I've found
a mostly reasonable alternativ
/*
This small program causes a libgc error when compiled and run in Cygwin:
$ gcc gcerror.c -lgc -o x.exe
$ ./x.exe
42
GC Warning: Thread stack pointer 0x22aa98 out of range, pushing
everything
*/
#include
#include
void *dummy;
void f (void (*x)())
{
x();
}
int main ()
4 matches
Mail list logo