delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3D4FC60F.1010500@upb.de> |
Date: | Tue, 06 Aug 2002 14:50:23 +0200 |
From: | =?ISO-8859-1?Q?Sven_K=F6hler?= <skoehler AT upb DOT de> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1b) Gecko/20020721 |
X-Accept-Language: | de, en |
MIME-Version: | 1.0 |
To: | Ulf Holm Nielsen <doktor AT dyregod DOT dk> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: Using fork in jni |
References: | <3D4F2AA0 DOT 1020607 AT dyregod DOT dk> |
X-Enigmail-Version: | 0.65.1.0 |
X-Enigmail-Supports: | pgp-inline, pgp-mime |
X-OriginalArrivalTime: | 06 Aug 2002 12:50:50.0781 (UTC) FILETIME=[E4A55CD0:01C23D47] |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |