[AGENT++] problem when stdin is closed.
Ashish Bansal
abansal at giga-stream.de
Wed May 12 13:56:31 CEST 2004
Hello ,
I am trying to change my subagents into daemon. For that
I am forking and killing the parent and want to close the
standard input/output.
But if I close the STDIN using close(0), then my subagents exists
just few seconds after starting.
following log Messages i found when closing STDIN, which is bit
different then the Log message(email's bottom) when I don't closeSTDIN.
Can any one please help me getting out of this problem ??
....
<closing STDIN>
...
20040512.11:44:16: 7292: (1)ERROR : SuAgentXMib: could not bind any port.
Aborting.
20040512.11:44:16: 7292: (1)ERROR : MIB WAS NOT INIT: (AgentXSlave:
received something on ports)
20040512.11:44:16: 7292: (1)ERROR : AgentXSlave: lost connection with
master
20040512.11:44:16: 7294: (1)DEBUG : Thread: started (tid): (1026)
20040512.11:44:16: 7295: (1)DEBUG : Thread: started (tid): (2051)
20040512.11:44:16: 7296: (1)DEBUG : Thread: started (tid): (3076)
20040512.11:44:16: 7297: (1)DEBUG : Thread: started (tid): (4101)
20040512.11:44:16: 7294: (1)DEBUG : Thread: ended (tid): (1026)
20040512.11:44:16: 7292: (4)DEBUG : Thread: joined thread successfully
(tid): (1026)
20040512.11:44:16: 7292: (1)DEBUG : TaskManager: thread stopped
20040512.11:44:16: 7295: (1)DEBUG : Thread: ended (tid): (2051)
20040512.11:44:16: 7292: (4)DEBUG : Thread: joined thread successfully
(tid): (2051)
20040512.11:44:16: 7292: (1)DEBUG : TaskManager: thread stopped
20040512.11:44:16: 7296: (1)DEBUG : Thread: ended (tid): (3076)
20040512.11:44:16: 7292: (4)DEBUG : Thread: joined thread successfully
(tid): (3076)
20040512.11:44:16: 7292: (1)DEBUG : TaskManager: thread stopped
20040512.11:44:16: 7297: (1)DEBUG : Thread: ended (tid): (4101)
20040512.11:44:16: 7292: (4)DEBUG : Thread: joined thread successfully
(tid): (4101)
20040512.11:44:16: 7292: (1)DEBUG : TaskManager: thread stopped
20040512.11:34:27: 7174: (1)DEBUG : TaskManager: thread started
Best Regards,
Ashish Bansal
======================================================================
This Worked
.........
20040512.11:34:27: 7174: (1)ERROR : SuAgentXMib: could not bind any port.
Aborting.
20040512.11:34:27: 7174: (1)ERROR : MIB WAS NOT INIT: (Thread: started
(tid)), (1026)
20040512.11:34:27: 7177: (1)DEBUG : Thread: started (tid): (2051)
20040512.11:34:27: 7178: (1)DEBUG : Thread: started (tid): (3076)
20040512.11:34:27: 7179: (1)DEBUG : Thread: started (tid): (4101)
20040512.11:34:29: 7174: (4)DEBUG : AgentXSlave: received something on
ports
More information about the AGENTPP
mailing list