The fork() in the program using the Solaris threads that is called
from the program using the POSIX thread run in the POSIX threads
semantic.
Can I run the fork() in the Solaris threads semantic on Solaris 9?
The following is how to compile and link:
cc fork.c -G -o libfork.so -D_REENTRANT -lthread
cc main.c -D_POSIX_C_SOURCE=199506L -lfork -lpthread
---main.c --using the POSIX threads---
main(){
sub();
}
---fork.c --using the Solaris threads---
sub(){
fork();
}
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code