Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "gilles bourgeois" <gbourgeois@yaccom.com>
To: <cygwin@cygwin.com>
Subject: IPC message queue through JNI may not work because of java exec !
Date: Fri, 28 Feb 2003 08:42:45 +0100
Message-ID: <BHEPLBGHPJKIDJGHBFLIMEABCAAA.gbourgeois@yaccom.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-MDRemoteIP: 192.168.1.90
X-Return-Path: gbourgeois@yaccom.com
X-MDaemon-Deliver-To: cygwin@cygwin.com

Hi folks,
I have a java graphical debugging tool which communicates with
a  process  (written in C)

both shall communicate through IPC message queue (historic : the tools where
running under solaris)

The point is :
From java side, ipc message queue is created with the help of a native dll
beeing accessed through JNI
from c side, the running process bind to the IPC queue and read data, this
is OK if the process is ***launched from a cygwin shell***
(with or without gbd)

BUT : if the running process is launched from java (within a
System.exec(PROCESS)), the C-process CANNOT bind to the IPC queue!!
I think my process does not share the same environment or what ?

if someone got an idea about this ?, I may use another solution before going
through a socket solution...

thanks
gilles




--
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/

