[OpenSIPS-Devel] [opensips] added exec(cmd, output, input, error, avpenv) function for exec (#375)
Walter Doekes
notifications at github.com
Wed Oct 29 09:56:02 CET 2014
> + goto error;
> + }
> +
> + if (ferror(pin)) {
> + ser_error=E_EXEC;
> + goto error;
> + }
> + pclose(pin);
> + }
> +
> + schedule_to_kill(pid);
> + wait(&exit_status);
> +
> + if (outvar) {
> + if (read_and_write2var(msg, &pout, outvar) < 0) {
> + LM_ERR("failed reading from pipe\n");
+ stdout
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/375/files#r19525389
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141029/379fbaa9/attachment.htm>
More information about the Devel
mailing list