Which one should I choose:
1.pclose should not be attempted if popen has already failed, even though it's tolerant in handling NULL handle.
2.Passing whatever popen returns to pclose, just like it's ok to pass whatever malloc returns to free.
After I carefully read the manual(i.e.:man pclose), I can't find any evidence that pclose could handle NULL parameter.