On Mon, Feb 13, 2006 at 03:09:03PM +0100, Marco d'Itri wrote:
> On Feb 13, Justin Pryzby <[EMAIL PROTECTED]> wrote:
> 
> > I meant if udev got killed either before s-s-d was even started, or if
> > s-s-d somehow tried to kill it twice, and failed on the second
> > attempt.
> I only checked 0.081-1, but the upgrade path uses start-stop-daemon
> --oknodo.
> Maybe s-s-d complains if --retry is used and udevd exits between the
> first and second signals sent?
Yes, this is kind of what I was thinking, but I can't confirm it with
a test process.  Also, 2/3 seems way too often for a simple race:

  char buf[1<<5];
  snprintf(buf, sizeof(buf), "/proc/%d/stat", pid)
  if (fp=fopen(buf, "r"))
        kill(pid, sig);
        fclose(fp);
  }

Which is essentially what s-s-d does.  Unless something is broken in
the algorithm which could of course explain it.

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to