Re: Daemonizing Qt app

2010-01-03 Thread koos vriezen
2009/12/31 ibrahim : > void signal_handler(int sig) > { >    switch(sig) { >    case SIGHUP: >        log_message(LOG_FILE,"hangup signal catched"); >        break; >    case SIGTERM: >        log_message(LOG_FILE,"terminate signal catched"); >        break; >    } > } > > /** >  create background

Re: Daemonizing Qt app

2009-12-31 Thread Jeremiah Foster
On Dec 31, 2009, at 16:42, ibrahim wrote: >case SIGHUP: >log_message(LOG_FILE,"hangup signal catched"); Sorry to be pedantic, but the past tense of 'catch' is 'caught'. 'Catched' might be confused with 'cached' which is not what you want. Jeremiah __

Daemonizing Qt app

2009-12-31 Thread ibrahim
Greetings; I am trying to create a background application (starts with system startup, and keeps running in the background ) . the only solution i found is to make it as daemon. searching the internet about how to create a daemon , I built a small