Re: Re-reading a config file

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

 



>  Thanks for your response. Could I achieve the same
> if my process resides in the kernel space?

Hi.

It can be done, but is a bit tricky.
look for code which uses "daemonize" in the kernel tree,
these are daemons which reside in kernel space, and some of the
are using signals.

anyway, u can try the following (bare basics):

to check if a signal is pending, use signal_pending(current)
which return 1 if there is a signal pending, 0 otherwise.
for further info, just use the source ;)

p.s.
if ur not using the lxr engine, try it: http://lxr.linux.no

========================================================================
nir.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux