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

Where is TFM ???




Grrrr. 

This is all I can say after I spent the last half an hour finding a
solution to some annoying problem. 

The problem was that a daemon I wrote simply wouldn't run from an rc file
(when init runs it. It would run if I as a user ran the rc file.) 

After adding some debug code, I came to the conclusion that it did work
but was killed somehow. 

So I added a few lines to trap all signals and found out that right before
login (or as soon as login) kicks in my daemon gets signals 18 and 1,
(SIGCONT and SIGHUP).

I removed the debug code and trappings and left a trap for signals 18 and
1, and it now works just dandy.

Now, how on earth was I supposed to know that my little proggy will
receive those two signals? Where it is written? 

Well, I've looked. Nothing about sending signals to daemons by init or
whatever sends them. 

The question still stands - where's TFM ? 

Dudu.

------------------------------------------------------------------------------
crisk@netvision.net.il                                           HAIFA, ISRAEL
------------------------------------------------------------------------------
Sexually tilted quote from STAR WARS:
  1. She may not look like much, but she's got it where it counts, kid.