Hello,
I am trying to monitor child processes by means of the waitpid() system call (on Sun Solaris).
JNIEXPORT jint JNICALL
Java_blablabla_NativeInterface_waitForDyingProcess
( JNIEnv *pJNIEnv,
jobject jobjectCaller
)
{
pid_t pid = waitpid (0, 0, WNOHANG);
if (pid...
Hello,
In an old MFC tool, I used following code to determine all tables in an ODBC connection.
// Get a list of the tables
CTables rs(&m_db);
rs.Open(NULL, NULL, NULL, "TABLE");
// Cycle through all the tables
CString strTableRef;
while (!rs.IsEOF())
{
}
How can I...
Hello,
I need to select some Database Upgrade Tool / Software, which allows us to improve our application upgrade strategy.
(synchronisation of databases, comparison of DDL's, replaction of changes etc...)
Change Manager from BMC software is a candidate. Does anybody know a link towards...
Hello,
My worst nightmare is coming true...
I work on a Compaq Alpha Server (4.0G)
By accident I removed many directories by means of a 'rm -r *' command in the wrong directory.
And now it seems the disk was not in the daily backup schedule. (Most recent backup 10 months ago)
Refactoring the...
Hello,
I have a first process that produces a core dump. Unfortunately other programs crash immediately and overwrite the initial core dump.
On Sun Solaris and Compaq TRU 64, one has the possibility to configure the kernel to produce core files like :
core.process1.1
core.process2.1...
Hello,
My communication server program is socket-based. This server listens to a number of sockets simultaneously, and when one socket indicates that a message is available, it uses the read() system call to fetch the data.
So :
---> poll() indicates the socket on which a read is available...
Hello,
I am using the IBM IDEBUG debugger to debug some kind of scheduler. Upon each fork() system call the debugger asks me whether I want to follow the parent or the child process.
Is there a possibility to indicate that I am only interested in the parent process ? (The compaq ladebug...
Hello,
I have 2 modules (actually I have more of them, but 2 are giving me headaches) : 'error' and 'time'. Now I need to create 2 shared libraries 'error' and 'time', but what happens ?
'error' uses 'time' and 'time' uses 'error'.
ld -o liberror.sl error.o -ltime
ld -o libtime.sl time.o...
Hello,
I am developing on a IBM RS/6000 AIX server.
I have a C-process with many shared libraries attached (+/- 250).
At some point a Java VM is being created with the call :
JNI_CreateJavaVM( &( gpJavaEnvironment->pJavaVM ),
(void**)&( pJNIEnv )...
Hello,
I am running a process with many shared libraries attached (+/- 250).
At some point a Java VM is being created with the call :
JNI_CreateJavaVM( &( gpJavaEnvironment->pJavaVM ),
(void**)&( pJNIEnv )...
Hello,
I have a Compax TRU64 server, a Sun , and a HP-UX server. From my desktop I connect with these server through Reflection X software.
Now a RS/6000 has been added. Connecting to it by means of Reflection is around 10 times slower than to the other servers.
In order to have Visual Age...
Hello,
I am using generic scripts to port our software to various UNIX platforms (Solaris / HP-UX / OSF / AIX). It seems AIX will lead me to some problems.
The dos2unix tool (sometimes called flip) is missing. Is there another tool? I might implement it with a 'one-liner' sed script, but I...
We have a problem linking shared libraries on a Compaq Alpha Server running on UNIX 4.0G.
This shared library consists of 1 C-module, of which we only want to export 1 function. The variables that were declared globally should not be exported.
By means of the -exported_symbol linker option...
Hello,
I try to use the Visual Age C++ Compiler on a RS/6000 - AIX host.
When I launch the application from the console, it runs smoothly, but when I use my own desktop, a blank splash screen pops up, and the application hangs.
I use Reflection X 8.00 software to connect to the host.
Does...
Hello,
My communication server process tells me it can't open more files. Here is some more information.
System definitions : (were checked with ulimit command)
- Soft limit 1024
- Hard limit 4096
My program tries to open 260 files (argument passed on command line)
#include <stdio.h>...
Hello,
The following script one.sh calls second.sh using the '.' operator (in order to retain environment variables defined in second.sh)
After the execution of second.sh, the original command line arguments $1,etc are lost.
#!/usr/bin/ksh
# first.sh : call this script with arguments...
Hello,
Here is a very simple C program :
#include <stdio.h>
int main(int argc, char *argv[])
{
printf ("%d\n", argc);
}
It is compiled with the following makefile. The main executable is created in 2 phases (compilation and linking), while the main2 executable is created with...
Hello,
I have a shell script that processes a Microsoft like PATH environment variable. I want to add some folders to it.
export current=`eval $NTPATH`
export additional=`cat path.lst`
export NTPATH=$current\;$additional
echo $NTPATH
The first statement fails when either a blanc appears in...
Hello,
I can connect from PC 1 towards our Digital UNIX host (by means of Reflection X).
From PC 2, I cannot connect : Reflection tells me "XDM Session to host failed (Session xx failed for display P200E06:0:0 cannot open display) RX2112."
Actually P200E06 is the PC 1 mentioned above...
Hello,
I compiled a program l4srv which used one shared library (located in the same directory) and some system shared libraries (socket, c, m, ...)
The environment tells me LD_LIBRARY_PATH=.
When I start the program, I get :
ld.so.1: l4srv: fatal: ared: open failed: No such file or directory...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.