Close pipe and wait for the pipe process termination
Close pipe and wait for the pipe process termination

In case of normal strace termination, when the trace output is
redirected to a file or a pipe, close it and wait for the pipe
process termination.

* strace.c (main): Before normal exit, close shared_log when it
differs from stderr, and wait for popen_pid termination.

geekboxzone/lollipop_external_strace,gcode-mirror/strace-plus,android-ia/platform_external_strace,bnoordhuis/strace,lizh06/strace-plus,cuviper/strace,Yu-AndroidM/android_external_strace,jamel/strace-plus,Saruta/strace,geekboxzone/lollipop_external_strace,Saruta/strace,geofft/strace,geofft/strace,Yu-AndroidM/android_external_strace,Distrotech/strace,CyanogenMod/android_external_strace,vrastogi/strace,Infinitive-OS/platform_external_strace,CyanogenMod/android_external_strace,MonkeyZZZZ/platform_external_strace,lkundrak/strace,gcode-mirror/strace-plus,DirtyUnicorns/android_external_strace,geekboxzone/mmallow_external_strace,xin3liang/platform_external_strace,vrastogi/strace,Andrey9kin/revisor,pgbovine/strace-plus,Distrotech/strace,TeamExodus/external_strace,pombredanne/strace,android-ia/platform_external_strace,jamel/strace-plus,Distrotech/strace,lkundrak/strace,bigzz/strace_android,cuviper/strace,lizh06/strace-plus,jamel/strace-plus,AOSP-YU/platform_external_strace,vrastogi/strace,Andrey9kin/revisor,android-ia/platform_external_strace,pgbovine/strace-plus,TeamExodus/external_strace,gcode-mirror/strace-plus,TeamExodus/external_strace,YUPlayGodDev/platform_external_strace,geekboxzone/mmallow_external_strace,Saruta/strace,kapdop/android_external_strace,geofft/strace,xin3liang/platform_external_strace,Saruta/strace,Andrey9kin/revisor,YUPlayGodDev/platform_external_strace,AOSP-YU/platform_external_strace,CyanogenMod/android_external_strace,DirtyUnicorns/android_external_strace,bnoordhuis/strace,geekboxzone/lollipop_external_strace,Infinitive-OS/platform_external_strace,MonkeyZZZZ/platform_external_strace,kapdop/android_external_strace,lizh06/strace-plus,kapdop/android_external_strace,lizh06/strace-plus,geofft/strace,android-ia/platform_external_strace,Distrotech/strace,DirtyUnicorns/android_external_strace,lkundrak/strace,Infinitive-OS/platform_external_strace,geekboxzone/mmallow_external_strace,AOSP-YU/platform_external_strace,Yu-AndroidM/android_external_strace,Yu-AndroidM/android_external_strace,pombredanne/strace,android-ia/platform_external_strace,gcode-mirror/strace-plus,Infinitive-OS/platform_external_strace,YUPlayGodDev/platform_external_strace,TeamExodus/external_strace,xin3liang/platform_external_strace,cuviper/strace,geekboxzone/mmallow_external_strace,DirtyUnicorns/android_external_strace,Infinitive-OS/platform_external_strace,MonkeyZZZZ/platform_external_strace,bigzz/strace_android,cuviper/strace,Yu-AndroidM/android_external_strace,CyanogenMod/android_external_strace,xin3liang/platform_external_strace,TeamExodus/external_strace,geekboxzone/lollipop_external_strace,Andrey9kin/revisor,gcode-mirror/strace-plus,geekboxzone/mmallow_external_strace,lizh06/strace-plus,jamel/strace-plus,pombredanne/strace,vrastogi/strace,YUPlayGodDev/platform_external_strace,bigzz/strace_android,pgbovine/strace-plus,kapdop/android_external_strace,pgbovine/strace-plus,bigzz/strace_android,Saruta/strace,YUPlayGodDev/platform_external_strace,MonkeyZZZZ/platform_external_strace,pgbovine/strace-plus,jamel/strace-plus,MonkeyZZZZ/platform_external_strace,pombredanne/strace,DirtyUnicorns/android_external_strace,lkundrak/strace,vrastogi/strace,kapdop/android_external_strace,bnoordhuis/strace,bigzz/strace_android,geofft/strace,CyanogenMod/android_external_strace,AOSP-YU/platform_external_strace,bnoordhuis/strace,geekboxzone/lollipop_external_strace,Distrotech/strace,AOSP-YU/platform_external_strace,cuviper/strace