This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Using fork in jni
- From: Sven Köhler <skoehler at upb dot de>
- To: Ulf Holm Nielsen <doktor at dyregod dot dk>
- Cc: cygwin at cygwin dot com
- Date: Tue, 06 Aug 2002 14:50:23 +0200
- Subject: Re: Using fork in jni
- References: <3D4F2AA0.1020607@dyregod.dk>
i wonder what fork() does, when it is called by a library a app uses.
i think the app is forked too, so you would fork the JVM which is a
thing that you must not do.
in addition the JVM is threaded! so fork() is the wrong thing here -
even under Linux i think.
Ulf Holm Nielsen wrote:
Hi,
I'm trying to use fork under jni but my program crashes, i searched the
archives and found that this might be related to some hack to load
cygwin from non-cygwin apps. But is there any way i can get this to work?
I'm compiling my dll with:
gcc -Ic:/j2sdk1.4.0/include -Ic:/j2sdk1.4.0/include/win32
-Wl,--add-stdcall-alias -shared -s -o mydll.dll
regards
Ulf Holm Nielsen
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/