dtmci appears to hang
Bug #1411317 reported by
Marvin Anderson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Committed
|
Medium
|
Adriana Fuentes |
Bug Description
When you su to the trafodion userid from another userid, ike root, and then try to run dtmci, it appears to hang. What is really happening is that stdout is not getting displayed so it looks like a hang this can be verified with the following commands
su trafodion
dtmci
<dtmci appears hung at this point>
exit
The 'exit' command will exit dtmci and return you to the Linux prompt thus proving dtmci is not hung but instead just not displaying stdout for some reason. It works find if you are logged in directly as the trafodion userid. It only does this behavior if you su from another userid.
To post a comment you must log in.
Suggestion from Dave George --
Here's the fix (in SqlciMain.cpp): init_attach( &argc, &argv, TRUE, (char *)""); debug_hook( "sqlci" , "sqlci.hook"); process_ startup( true); process_ startup2( true, false);
@@ -232,7 +232,7 @@ Int32 main (Int32 argc, char *argv[])
{
file_
msg_
- file_mon_
+ file_mon_
To fix it in dtmci.cpp you need the following: process_ startup( false); process_ startup3( false, false);
- msg_mon_
+ msg_mon_
In both cases, this turns off ‘pipeio’ – which routes stdout thru the monitor.