Branch: Tag:

2015-02-06

2015-02-06 11:09:33 by Chris Angelico <rosuav@gmail.com>

Use callablep() rather than functionp() for Process.run() redirection

548:    if(!modifiers)    modifiers = ([]);    -  if((modifiers->stdout && !functionp(modifiers->stdout)) -  || (modifiers->stderr && !functionp(modifiers->stderr))) +  if((modifiers->stdout && !ccallablep(modifiers->stdout)) +  || (modifiers->stderr && !callablep(modifiers->stderr)))    throw( ({ "Can not redirect stdout or stderr in Process.run, "    "please use Process.Process instead.", backtrace() }) );