| | 274 | | | | upkstralloc(mp, ss) | | | 275 | | | | struct pmsg *mp; | | | 276 | | | | char **ss; | | | 277 | | | | { | | | 278 | | | | int cc; | | | 279 | | | | int l; | | | 280 | | | | | | | 281 | | | | if (!(cc = (mp->m_codef->dec_int) (mp, (void*)&l, 1, 1, sizeof(int)))) { | | | 282 | | | | if (l <= 0) | | | 283 | | | | cc = PvmNoData;
| | | 284 | | | | else { | | | 285 | | | | *ss = TALLOC(l, char, "ustr");
| | | 286 | | | | if ((cc = (mp->m_codef->dec_byte) (mp, (void*)*ss, l, 1, 1)) < 0) { | | | 287 | | | | PVM_FREE(*ss);
| | | 288 | | | | *ss = 0; | | | 289 | | | | } | | | 290 | | | | } | | | 291 | | | | } | | | 292 | | | | return cc; | | hp->h_login <= 4095 | 293 | | | | } |
| | 376 | | || upkstralloc(mp, &hp->h_cmd) | | | 377 | | || upkstralloc(mp, &hp->h_wincmd) | | | 378 | | || upkstralloc(mp, &hp->h_vmid)) { | | | 379 | | pvmlogerror("hoster() bad message format\n"); | | | 380 | | pvmbailout(0); | | | 381 | | } | | | 382 | | | | | 383 | | if (!strcmp(hp->h_wincmd,"")) { | | | 384 | | PVM_FREE(hp->h_wincmd);
| | | 385 | | hp->h_wincmd = 0; | | | 386 | | } | | | 387 | | | | | 388 | | if (!strcmp(hp->h_vmid,"")) { | | | 389 | | PVM_FREE(hp->h_vmid);
| | | 390 | | hp->h_vmid = 0; | | | 391 | | } | | | 392 | | if (pvmdebmask & PDMSTARTUP) {
| | | 393 | | pvmlogprintf("%d. t%x %s so=\"%s\"\n", i, | | | 394 | | hp->h_tid, | | | 395 | | hp->h_login, | | | 396 | | hp->h_sopts); | | | 397 | | } | | hp->h_login <= 4095 | 398 | | if (p = CINDEX(hp->h_login, '@')) {
|
|