while (info) {
int need_eof;
- _ckvmssts(SYS$SETAST(0));
+ _ckvmssts(sys$setast(0));
need_eof = info->mode != 'r' && !info->done;
- _ckvmssts(SYS$SETAST(1));
+ _ckvmssts(sys$setast(1));
if (need_eof) {
if (pipe_eof(info->fp, 1) & 1) did_stuff = 1;
}
did_stuff = 0;
info = open_pipes;
while (info) {
- _ckvmssts(SYS$SETAST(0));
+ _ckvmssts(sys$setast(0));
if (!info->done) { /* Tap them gently on the shoulder . . .*/
sts = sys$forcex(&info->pid,0,&abort);
if (!(sts&1) && sts != SS$_NONEXPR) _ckvmssts(sts);
did_stuff = 1;
}
- _ckvmssts(SYS$SETAST(1));
+ _ckvmssts(sys$setast(1));
info = info->next;
}
if (did_stuff) sleep(1); /* wait for them to respond */
info = open_pipes;
while (info) {
- _ckvmssts(SYS$SETAST(0));
+ _ckvmssts(sys$setast(0));
if (!info->done) { /* We tried to be nice . . . */
sts = sys$delprc(&info->pid,0);
if (!(sts&1) && sts != SS$_NONEXPR) _ckvmssts(sts);
info->done = 1; /* so my_pclose doesn't try to write EOF */
}
- _ckvmssts(SYS$SETAST(1));
+ _ckvmssts(sys$setast(1));
info = info->next;
}
/* If we were writing to a subprocess, insure that someone reading from
* the mailbox gets an EOF. It looks like a simple fclose() doesn't
* produce an EOF record in the mailbox. */
- _ckvmssts(SYS$SETAST(0));
+ _ckvmssts(sys$setast(0));
need_eof = info->mode != 'r' && !info->done;
- _ckvmssts(SYS$SETAST(1));
+ _ckvmssts(sys$setast(1));
if (need_eof) pipe_eof(info->fp,0);
PerlIO_close(info->fp);
else waitpid(info->pid,(int *) &retsts,0);
/* remove from list of open pipes */
- _ckvmssts(SYS$SETAST(0));
+ _ckvmssts(sys$setast(0));
if (last) last->next = info->next;
else open_pipes = info->next;
- _ckvmssts(SYS$SETAST(1));
+ _ckvmssts(sys$setast(1));
Safefree(info);
return retsts;