Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel

clamd chdir(/)

 

 

ClamAV devel RSS feed   Index | Next | Previous | View Threaded


clam at fiddaman

Feb 13, 2004, 6:50 AM

Post #1 of 3 (804 views)
Permalink
clamd chdir(/)

Is there any specific reason that clamd does a chdir("/") when daemonising
? It makes it a bit tricky for me to collect any core files it creates
(unless I move to a global core file area).

I did want to do a "cd /var/run/clamav && /opt/clamav/bin/clamd" because
I've had a couple of crashes since upgrading to 0.66 that I wanted to look
at.

Thanks,

Andy


tk at lodz

Feb 13, 2004, 1:41 PM

Post #2 of 3 (788 views)
Permalink
Re: clamd chdir(/) [In reply to]

On Fri, 13 Feb 2004 14:47:26 +0000 (GMT)
Andy Fiddaman <clam [at] fiddaman> wrote:

>
> Is there any specific reason that clamd does a chdir("/") when
> daemonising? It makes it a bit tricky for me to collect any core files

Without that you will be unable to umount a filesystem you have started
clamd on.

> it creates(unless I move to a global core file area).
>
> I did want to do a "cd /var/run/clamav && /opt/clamav/bin/clamd"
> because I've had a couple of crashes since upgrading to 0.66 that I
> wanted to look at.

There will be a --debug option that will disable the chdir().

Best regards,
Tomasz Kojm
--
oo ..... tkojm [at] clamav www.ClamAV.net
(\/)\......... http://www.clamav.net/gpg/tkojm.gpg
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
//\ /\ Fri Feb 13 21:00:43 CET 2004


crosser at rol

Feb 14, 2004, 3:15 AM

Post #3 of 3 (798 views)
Permalink
Re: clamd chdir(/) [In reply to]

On Fri, 2004-02-13 at 23:02, Tomasz Kojm wrote:
> On Fri, 13 Feb 2004 14:47:26 +0000 (GMT)
> Andy Fiddaman <clam [at] fiddaman> wrote:
>
> >
> > Is there any specific reason that clamd does a chdir("/") when
> > daemonising? It makes it a bit tricky for me to collect any core files
>
> Without that you will be unable to umount a filesystem you have started
> clamd on.
>
> > it creates(unless I move to a global core file area).
> >
> > I did want to do a "cd /var/run/clamav && /opt/clamav/bin/clamd"
> > because I've had a couple of crashes since upgrading to 0.66 that I
> > wanted to look at.
>
> There will be a --debug option that will disable the chdir().

Maybe it would be better to have a configuration option
"working-directory", with default value of "/"?

Eugene

ClamAV devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.