Hi, I'm trying to fork & exec using the process-... procedures from the posix egg.
My program (which involves spiffy) has a bunch of srfi-18 threads running and I note that one doesn't get the same semantics as with fork and pthreads in C. Namely, the new fork contains all the srfi-18 threads and they're all running. There's no opportunity to get in there and stop them from running in the child without declaring the whole module "disable-interrupts". The reason I need to fork and then exec is that I need to fiddle with some file descriptors in the child before I exec. For now I've written a fork-exec function in C and bound it to a foreign-lambda. I believe this will work as the chicken scheduler will be disabled throughout the single call to the foreign-lambda. Is this interaction between the posix egg and srfi-18 considered a bug? Is there anything that can be done about it? Regards, @ndy -- [email protected] http://www.ashurst.eu.org/ 0x7EBA75FF _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
