Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  14 Dec 2004, Konstantin Olchanski, Info, Commit local TWIST modifications 
    Reply  14 Dec 2004, Konstantin Olchanski, Info, Commit local TWIST modifications 
       Reply  14 Dec 2004, Konstantin Olchanski, Info, mhttpd: Commit local TWIST modifications 
       Reply  15 Dec 2004, Stefan Ritt, Info, Commit local TWIST modifications 
          Reply  16 Dec 2004, Konstantin Olchanski, Info, "cd /" in ss_daemon_init(), was- Commit local TWIST modifications 
Message ID: 182     Entry time: 15 Dec 2004     In reply to: 179     Reply to this: 186
Author: Stefan Ritt 
Topic: Info 
Subject: Commit local TWIST modifications 
> - system.c: do not chdir("/") in ss_daemon_init()- it prevents us from ever
>   getting core dumps from midas daemons. The old behaviour is trivially
>   restored by "cd /" before starting the daemon; or by "limit coredumpsize 0".

The chdir("/") is from one of the unix text books. They say you HAVE to do it. If you start a
daemon on an NFS file system, you cannot unmount that file system as long as the daemon is
running. I'm sure the same code is inside most other daemons (apache, ...). So if we go away
from that standard, we have to be aware of the consequences.
ELOG V3.1.4-2e1708b5