Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: caught signal 2



On Wednesday 15 December 2004 19:38, Klaus Schmidinger wrote:
> Stefan Taferner wrote:
> > On Wednesday 15 December 2004 17:50, Klaus Schmidinger wrote:
> >>hm@seneca.muc.de wrote:
[...]
> >>Just an idea (don't know if this helps in any way):
> >>Add the line
> >>
> >>   dsyslog("PID = %d", getpid());
> >>
> >>to the SignalHandler() function in VDR/vdr.c. Maybe it gives you
> >>the process id of the process sending the signal - which might shed
> >>some more light on this.
> >
> > Ehh.... getpid will print the PID of VDR (in his example 2659), not?
> >
> > --Stefan
>
> I'm not sure about that - maybe it prints the pid of the interrupting
> process.

No, it prints the PID of the running process. At least to my knowledge and
that of the Linux' manpage.

I do not know a way to find out the PID of the signal sender, unfortunately.

--Stefan




Home | Main Index | Thread Index