This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: signal handling: kill() successful, but nothing delivered
- From: michi1 at michaelblizek dot twilightparadox dot com
- To: Ángel González <keisial at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Mon, 18 Mar 2013 06:49:20 +0100
- Subject: Re: signal handling: kill() successful, but nothing delivered
- References: <20130313173830.GA2201@grml><51463EF9.9030504@gmail.com>
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