winlin

for #367, refine the comments for process.

@@ -35,6 +35,11 @@ @@ -35,6 +35,11 @@
35 /** 35 /**
36 * to start and stop a process, cycle to restart the process when terminated. 36 * to start and stop a process, cycle to restart the process when terminated.
37 * the usage: 37 * the usage:
  38 + * // the binary is the process to fork.
  39 + * binary = "./objs/ffmpeg/bin/ffmpeg";
  40 + * // where argv is a array contains each params.
  41 + * argv = ["-i", "in.flv", "1", ">", "/dev/null", "2", ">", "/dev/null"];
  42 + *
38 * process = new SrsProcess(); 43 * process = new SrsProcess();
39 * if ((ret = process->initialize(binary, argv)) != ERROR_SUCCESS) { return ret; } 44 * if ((ret = process->initialize(binary, argv)) != ERROR_SUCCESS) { return ret; }
40 * if ((ret = process->start()) != ERROR_SUCCESS) { return ret; } 45 * if ((ret = process->start()) != ERROR_SUCCESS) { return ret; }