Re: Cr8ing Daemon Threads

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

 



On Wed, Nov 13, 2002 at 10:03:10PM -0500, Prasad S Tummala wrote:
>      I have to create  a deamon thred in my program. It has to be specified in 
> the attribute values. But I do not know how to set the attributes to create 
> the daemon.Please help me in creating it.

Prasad,

Daemons are normally created in userland programs.. are you sure you've
got the right list? :) If you are doing userland programming, check out
W. Richard Stevens's Advanced Programming in the Unix Environment. He
provides a very nice little daemonize() function that I suggest stealing. :)

If you want to create a kernel thread, look at the sources for khubd,
kswapd, kbdflush, etc.. many examples to learn from. :)

-- 
Nothing says, "Superpower" like bombing a country that is poor and
hungry. -- Ken Brush

Attachment: pgp00208.pgp
Description: PGP signature


[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