Re: signals handling: kill() successful, but nothing delivered

2013-03-18 Thread Valdis . Kletnieks
On Mon, 18 Mar 2013 06:50:25 +0100, mic...@michaelblizek.twilightparadox.com said: Hi! On 06:52 Fri 08 Mar , mic...@michaelblizek.twilightparadox.com wrote: ./a.out `ps a|grep wget|grep -v grep To save the double grep, you can do something like this: ps a | grep '[w]get' | ...

Re: signals handling: kill() successful, but nothing delivered

2013-03-17 Thread michi1
Hi! On 06:52 Fri 08 Mar , mic...@michaelblizek.twilightparadox.com wrote: ./a.out `ps a|grep wget|grep -v grep|sed s/^[^0-9]*\([0-9]*\).*$/\1/` The command above returned the strace pid. Fixed version: ./a.out `ps a|grep wget|grep -v grep|grep -v strace|sed