/* CancelIo is not available for Windows 95 OS, so we need to use
LoadLibrary/GetProcAddress to avoid a startup failure. */
#define CancelIo dyn_CancelIo
/* CancelIo is not available for Windows 95 OS, so we need to use
LoadLibrary/GetProcAddress to avoid a startup failure. */
#define CancelIo dyn_CancelIo
if (SetCommState (h, &state) == 0)
warning (_("SetCommState failed"));
}
if (SetCommState (h, &state) == 0)
warning (_("SetCommState failed"));
}
/* Otherwise discard it and wait again. */
ReadConsoleInput (h, &record, 1, &n_records);
/* Otherwise discard it and wait again. */
ReadConsoleInput (h, &record, 1, &n_records);
ps->wait.read_event = INVALID_HANDLE_VALUE;
ps->wait.except_event = INVALID_HANDLE_VALUE;
ps->wait.start_select = INVALID_HANDLE_VALUE;
ps->wait.read_event = INVALID_HANDLE_VALUE;
ps->wait.except_event = INVALID_HANDLE_VALUE;
ps->wait.start_select = INVALID_HANDLE_VALUE;
- argv[0], argv, NULL, NULL,
- &err);
+ argv[0], argv.get (), NULL, NULL,
+ &err);
- /* Our caller expects us to return -1, but all they'll do with
- it generally is print the message based on errno. We have
- all the same information here, plus err_msg provided by
- pex_run, so we just raise the error here. */
- if (err)
- error (_("error starting child process '%s': %s: %s"),
- name, err_msg, safe_strerror (err));
- else
- error (_("error starting child process '%s': %s"),
- name, err_msg);
+ /* Our caller expects us to return -1, but all they'll do with
+ it generally is print the message based on errno. We have
+ all the same information here, plus err_msg provided by
+ pex_run, so we just raise the error here. */
+ if (err)
+ error (_("error starting child process '%s': %s: %s"),
+ name, err_msg, safe_strerror (err));
+ else
+ error (_("error starting child process '%s': %s"),
+ name, err_msg);
scb->fd = fileno (ps->output);
pex_stderr = pex_read_err (ps->pex, 1);
if (! pex_stderr)
scb->fd = fileno (ps->output);
pex_stderr = pex_read_err (ps->pex, 1);
if (! pex_stderr)
/* In theory, we should try to kill the subprocess here, but the pex
interface doesn't give us enough information to do that. Usually
/* In theory, we should try to kill the subprocess here, but the pex
interface doesn't give us enough information to do that. Usually