This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using fork in jni


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]