This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: strace -f hangs forever with process who creates child process


From: Qian Hong
> I just found `strace -f` hangs forever for me.
> 
> $ uname -a
> CYGWIN_NT-6.1 fracting-PC 2.2.1(0.289/5/3) 2015-08-15 11:00 i686 Cygwin)
> 
> $ cat parent.sh
> ./child.sh
> 
> $ cat child.sh
> echo haha
> 
> $ strace -f -o out.txt bash -c parent.sh #hangs forever.

FWIW, this also seems to hang for me, but can't confirm that it 
hangs "forever", as I didn't wait that long. Ctrl/C-ing out works, 
but that takes several seconds to take effect. And then I can't 
delete out.txt:

$ rm -f out.txt
rm: cannot remove âout.txtâ: Device or resource busy
$ 

Commands 'ps' and 'who' don't indicate any other processes, but
Task Manager shows another bash process. After killing that process
I am then able to delete out.txt.

--Ken Nellis

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]