2007-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2007-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Never interrupt when the attached traced process would be left stopped.
	* strace.c (main): `-p' attaching moved to ...
	(startup_attach): ... a new function, renamed a variable C to TCBI.
	Block interrupting signals since the first tracee has been attached.
	New comment about INTERRUPTED in the nonthreaded case.
	[LINUX] (startup_attach): Check INTERRUPTED after each attached thread.
	(main): Command spawning moved to ...
	(startup_child): ... a new function, replaced RETURN with EXIT.
	[LINUX] (detach): New variable CATCH_SIGSTOP, do not signal
	new SIGSTOP for processes still in TCB_STARTUP.
	(main): Move signals and BLOCKED_SET init before the tracees attaching,
	[SUNOS4] (trace): Removed fixvfork () call as a dead code, SIGSTOP must
	have been already caught before clearing TCB_STARTUP.
	(trace): Removed the `!WIFSTOPPED(status)' dead code.
	Clear TCB_STARTUP only in the case the received signal was SIGSTOP.
	New comment when `TCB_BPTSET && TCB_STARTUP' combination can be set.
	Code advisory: Roland McGrath
	Fixes RH#240986.

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