Hide Forgot
Adding "run" API for invoking external commands, with following features: - arguments first collected, then the invocation happens with fork + exec - flexible specification of arguments (besides si{mp,ng}le argument addition, support for adding multiple of them at a time / specifying one with printf style formatting) [ ==> goodbye printf percentage soup when composing commands ] - single point of error check - simple command runs are done in just one line - support for popen(cmd, "r") like functionality
PATCH: http://patches.gluster.com/patch/7250 in master (libglusterfs: clean up memory types)
PATCH: http://patches.gluster.com/patch/7251 in master (libglusterfs: add 'run' sub-lib for safe and convenient invocation of external programs)
PATCH: http://patches.gluster.com/patch/7252 in master (reimplement invocation of external programs with run API)
*** Bug 2787 has been marked as a duplicate of this bug. ***
CHANGE: http://review.gluster.com/428 (When run was doing a program invocation like "echo foo > foof",) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/3068 (libglusterfs/run: POSIX compatible closing of child fds on non-Linux) merged in master by Vijay Bellur (vijay)