something hangs ... but what?

Hi all out there!

I’ve watvhed a strange behavior on my qnx machine and i can’t explain it
myself.
Please help me track the problem:

Do you know a reason why the ps-command may fail to end correctly?
After system start ps -a works fine.
Then i start some progs (special driver, database postgres, ?) and (not
after a specified time)
ps -a shows up a process list and hangs!
It seems ps shows up to the last process and is not terminated correctly.
My console (pterm) is dead after that.
Opening a new terminal works!
I can do a lot of things w/o problems, but ps will hang up my new terminal
again.
Also trying a slay will hang.

What may cause this?
What can i try next to track it?

(I’m using qnx rtp 6.1 on a geode gx1 machine with compactFlash-Drive.)

Many thanx in advance for your thougts!

CG

I don’t know the answer, but I share your frustration. sin and psin often
hang on me as you’ve described, but pidin always seems to work.


Marty Doane
Siemens Dematic


“CG” <exai17@yahoo.de> wrote in message news:aitfg5$ehd$1@inn.qnx.com

Hi all out there!

I’ve watvhed a strange behavior on my qnx machine and i can’t explain it
myself.
Please help me track the problem:

Do you know a reason why the ps-command may fail to end correctly?
After system start ps -a works fine.
Then i start some progs (special driver, database postgres, ?) and (not
after a specified time)
ps -a shows up a process list and hangs!
It seems ps shows up to the last process and is not terminated correctly.
My console (pterm) is dead after that.
Opening a new terminal works!
I can do a lot of things w/o problems, but ps will hang up my new terminal
again.
Also trying a slay will hang.

What may cause this?
What can i try next to track it?

(I’m using qnx rtp 6.1 on a geode gx1 machine with compactFlash-Drive.)

Many thanx in advance for your thougts!

CG

Hi CH,

I have had this type of behaviour when I have left stdio and stderr file
descriptors open when spawning other processes from my own processes when
they are a deamon. The problem seems to be fixed in my situation by the
inclusion of the fcntl() function, before and after a spawn() call. I don’t
know if this applies to your situation but it certainly fixed my
problems…

I hope this helps

Regard,

Pete
“CG” <exai17@yahoo.de> wrote in message news:aitfg5$ehd$1@inn.qnx.com

Hi all out there!

I’ve watvhed a strange behavior on my qnx machine and i can’t explain it
myself.
Please help me track the problem:

Do you know a reason why the ps-command may fail to end correctly?
After system start ps -a works fine.
Then i start some progs (special driver, database postgres, ?) and (not
after a specified time)
ps -a shows up a process list and hangs!
It seems ps shows up to the last process and is not terminated correctly.
My console (pterm) is dead after that.
Opening a new terminal works!
I can do a lot of things w/o problems, but ps will hang up my new terminal
again.
Also trying a slay will hang.

What may cause this?
What can i try next to track it?

(I’m using qnx rtp 6.1 on a geode gx1 machine with compactFlash-Drive.)

Many thanx in advance for your thougts!

CG