This is the mail archive of the libc-help@sourceware.org mailing list for the glibc 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: signal handling: kill() successful, but nothing delivered


Hi!

On 23:08 Sun 17 Mar     , Ángel González wrote:
> El 13/03/13 18:38, michi1@michaelblizek.twilightparadox.com escribió:
> >        ./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 "s/^[^0-9]*\([0-9]*\).*$/\1/"`

> Two ideas:
> - The default action of SIGURG is to be ignored
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html

Yes, I want it to be ignored. It should only trigger the system call return
with ERESTARTSYS/EINTR.

> - Are you sure that pipe correctly returns the wget pid (and only one
> instance is running) ? Why not use `pidof wget` instead?

Never heard of pidof, but good to know.

	-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com


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