[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49748] pkg and edit fail with "unable to star
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #49748] pkg and edit fail with "unable to start subprocess" |
Date: |
Fri, 2 Dec 2016 10:14:44 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #2, bug #49748 (project octave):
@Lachlan: Good to see you back on Octave. It seems like only the last
circumstance would be an actual Octave problem to be resolved. If it was
something transient with the OS then there isn't much we can do.
The code in question is in toplev.cc:
// Execute a shell command.
static octave_value_list
run_command_and_return_output (const std::string& cmd_str)
{
octave_value_list retval;
octave::unwind_protect frame;
iprocstream *cmd = new iprocstream (cmd_str.c_str ());
frame.add_delete (cmd);
frame.add_fcn (octave::child_list::remove, cmd->pid ());
if (! *cmd)
error ("system: unable to start subprocess for '%s'", cmd_str.c_str ());
If you do get it in to an error state it might be useful to see if you can run
any sort of shell command.
[a,b] = system ('ls /')
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49748>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/