Changeset 563 for trunk/dll/systemf.c
- Timestamp:
- Mar 15, 2007, 6:21:34 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/systemf.c
r562 r563 1082 1082 } 1083 1083 1084 // printf("%s %d DosStartsession thread 0x%x data\n ",1084 // printf("%s %d DosStartsession thread 0x%x data\n ", 1085 1085 // __FILE__, __LINE__,ptib->tib_ordinal); fflush(stdout); // 10 Mar 07 SHL hang 1086 // printf(" %d %d %d %s %s %s %d %d\n %s %x %x\n",1086 // printf(" %d %d %d %s %s %s %d %d\n %s %x %x\n", 1087 1087 // sdata.Length , sdata.Related, sdata.FgBg, sdata.PgmName, 1088 1089 1090 1088 // sdata.PgmInputs, sdata.TermQ, sdata.InheritOpt, 1089 // sdata.SessionType, szTermQName, 1090 // hTermQ, hTermQSem); fflush(stdout); 1091 1091 ret = DosStartSession(&sdata, &ulSessID, &sessPID); 1092 if (type & WAIT) { 1093 // printf("%s %d DosStartession thread 0x%x rc = %d sess = %u pid = 0x%x\n", 1094 // __FILE__, __LINE__, ptib->tib_ordinal,ret, ulSessID, sessPID); fflush(stdout); // 10 Mar 07 SHL hang 1095 } 1096 else { 1097 // printf("%s %d DosStartession thread 0x%x nowait rc = %d\n", 1098 // __FILE__, __LINE__, ptib->tib_ordinal,ret); fflush(stdout); // 10 Mar 07 SHL hang 1099 } 1092 1093 // if (type & WAIT) { 1094 // printf("%s %d DosStartession thread 0x%x rc = %d sess = %u pid = 0x%x\n", 1095 // __FILE__, __LINE__, ptib->tib_ordinal,ret, ulSessID, sessPID); fflush(stdout); // 10 Mar 07 SHL hang 1096 // } 1097 // else { 1098 // printf("%s %d DosStartession thread 0x%x nowait rc = %d\n", 1099 // __FILE__, __LINE__, ptib->tib_ordinal,ret); fflush(stdout); // 10 Mar 07 SHL hang 1100 // } 1100 1101 1101 1102 if (pszDirectory && *pszDirectory) … … 1113 1114 STATUSDATA sd; 1114 1115 // Could not create queue - fallback - fixme to be gone? 1115 // printf("%s %d waiting wo/termq\n", __FILE__, __LINE__); fflush(stdout); // 12 Mar 07 SHL hang1116 // printf("%s %d waiting wo/termq\n", __FILE__, __LINE__); fflush(stdout); // 12 Mar 07 SHL hang 1116 1117 1117 1118 memset(&sd, 0, sizeof(sd)); … … 1125 1126 break; 1126 1127 if (ctr > 10) { 1127 // printf("%s %d thread 0x%x showing slow sess %u pid 0x%x\n",1128 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,sessPID); fflush(stdout); // 12 Mar 07 SHL1128 // printf("%s %d thread 0x%x showing slow sess %u pid 0x%x\n", 1129 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,sessPID); fflush(stdout); // 12 Mar 07 SHL 1129 1130 ShowSession(hwnd, sessPID); // Show every 2 seconds 1130 1131 ctr = 0; … … 1145 1146 else { 1146 1147 if (ctr == 20) { 1147 1148 // printf("%s %d thread 0x%x showing slow sess %u pid 0x%x\n", 1148 1149 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,sessPID); fflush(stdout); 1149 1150 ShowSession(hwnd, sessPID); // Show long running session 1150 1151 } 1151 // printf("%s %d thread 0x%x waiting for slow sess %u pid 0x%x\n",1152 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID, sessPID); fflush(stdout);1153 1152 rc = DosReadQueue(hTermQ, &rq, &ulLength, (PPVOID)&pTermInfo, 0, 1154 1153 DCWW_WAIT, &bPriority, 0); … … 1162 1161 } 1163 1162 1164 // printf("%s %d DosReadQueue thread 0x%x sess %u sessRC %u rq.pid 0x%x rq.data 0x%x\n",1163 // printf("%s %d DosReadQueue thread 0x%x sess %u sessRC %u rq.pid 0x%x rq.data 0x%x\n", 1165 1164 // __FILE__, __LINE__,ptib->tib_ordinal,pTermInfo->usSessID,pTermInfo->usRC,rq.pid, rq.ulData); fflush(stdout); 1166 1165 1167 // might be looping here if confused about session id - fixme to ensure not possible?1168 1166 if (pTermInfo->usSessID == ulSessID) 1169 1167 break; // Our session is done … … 1172 1170 { 1173 1171 static ULONG ulLastSessID; 1174 // printf("%s %d requeue thread 0x%x our sess %u term sess %u term rc %u\n",1172 // printf("%s %d requeue thread 0x%x our sess %u term sess %u term rc %u\n", 1175 1173 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,pTermInfo->usSessID,pTermInfo->usRC); fflush(stdout); 1176 1174 // fixme to be gone when no longer needed for debug? … … 1188 1186 1189 1187 ret = pTermInfo->usRC == 0; // Set 1 if rc 0 else 0 1190 // printf("%s %d thread 0x%x term for sess %u\n",1191 1188 // printf("%s %d thread 0x%x term for sess %u\n", 1189 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID);fflush(stdout); 1192 1190 DosFreeMem(pTermInfo); 1193 1191 }
Note:
See TracChangeset
for help on using the changeset viewer.