Clarification on upstart-0.5 and dbus usage
Scott James Remnant
scott at netsplit.com
Thu Jun 19 00:38:57 BST 2008
On Thu, 2008-06-19 at 01:24 +0200, Matthias Urlichs wrote:
> Scott James Remnant:
> > pid = instance.Get("pid")["main"]
> >
> > # Muck around with pid as you see fit
> > if os.path.isfile("/tmp/%d" % pid):
> > return
> >
> > # Oh dear, it's broken
> > instance.Restart()
>
> Nice race condition there. :-P
>
What's the race?
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20080619/7015b1a1/attachment.pgp
More information about the upstart-devel
mailing list