* [PATCH] clvmd should create its own pid file
@ 2010-07-08 13:04 Fabio M. Di Nitto
2010-07-08 14:59 ` Alasdair G Kergon
0 siblings, 1 reply; 4+ messages in thread
From: Fabio M. Di Nitto @ 2010-07-08 13:04 UTC (permalink / raw)
To: lvm-devel
Hi guys,
as discussed on IRC, clvmd needs to create its own pid file.
Code stolen from cmirrord :)
Fabio
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: clvmd_pid_file.diff
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20100708/9dfc1bd2/attachment.ksh>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] clvmd should create its own pid file
2010-07-08 13:04 [PATCH] clvmd should create its own pid file Fabio M. Di Nitto
@ 2010-07-08 14:59 ` Alasdair G Kergon
2010-07-08 18:18 ` Fabio M. Di Nitto
0 siblings, 1 reply; 4+ messages in thread
From: Alasdair G Kergon @ 2010-07-08 14:59 UTC (permalink / raw)
To: lvm-devel
Does this work OK with clvmd -S?
Should we have FD_CLOEXEC ?
(See pidfile.c in multipathd.)
Also, let's make it library code rather than copying it from cmirrord.
Alasdair
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] clvmd should create its own pid file
2010-07-08 14:59 ` Alasdair G Kergon
@ 2010-07-08 18:18 ` Fabio M. Di Nitto
2010-07-08 18:25 ` Alasdair G Kergon
0 siblings, 1 reply; 4+ messages in thread
From: Fabio M. Di Nitto @ 2010-07-08 18:18 UTC (permalink / raw)
To: lvm-devel
On 07/08/2010 04:59 PM, Alasdair G Kergon wrote:
> Does this work OK with clvmd -S?
Yes. It appears to be working fine.
> Should we have FD_CLOEXEC ?
>
> (See pidfile.c in multipathd.)
I don't have any special preference. I noticed that the pid file
implementations in other daemons (within lvm2) don't use it nor unlink
the pid file on exit.
> Also, let's make it library code rather than copying it from cmirrord.
Works for me.
I am going to make it a lib call and cleanup both cmirrord/dmeventd/clvmd.
Do you have anything against atexit() handler? That's what we use in
cluster daemons to unlink the pid files.
Cheers
Fabio
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-08 18:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08 13:04 [PATCH] clvmd should create its own pid file Fabio M. Di Nitto
2010-07-08 14:59 ` Alasdair G Kergon
2010-07-08 18:18 ` Fabio M. Di Nitto
2010-07-08 18:25 ` Alasdair G Kergon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.