[Gpe-bugs] [Bug 44] New: pidfile created by gpe-dm is not correct
bugzilla-daemon at linuxtogo.org
bugzilla-daemon at linuxtogo.org
Tue May 1 12:07:06 CEST 2007
http://bugs.linuxtogo.org/show_bug.cgi?id=44
Summary: pidfile created by gpe-dm is not correct
Product: gpe-dm
Version: 0.48
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P4
Component: default
AssignedTo: gpe-bugs at linuxtogo.org
ReportedBy: manuel.teira at telefonica.net
Estimated Hours: 0.0
And this is preventing the init script to work correctly with the 'stop'
argument.
Looking at the code in gpe-dm.c, it seems that the pidfile generation is
performed before calling :
int daemon(int nochdir, int noclose);
As this funcion will eventually fork, the already stored pid is no longer
correct.
I've tested a little patch to put the pidfile stuff after daemon and it seems
to work fine.
I'm attaching it.
--
Configure bugmail: http://bugs.linuxtogo.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Gpe-bugs
mailing list