WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] properly daemonize vncviewer

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] properly daemonize vncviewer
From: "Charles Coffing" <ccoffing@xxxxxxxxxx>
Date: Wed, 02 Aug 2006 12:19:03 -0600
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 02 Aug 2006 11:19:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <0b0944f308ee948afbb6734232e2a7c2@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <44CF52BA.D169.003C.0@xxxxxxxxxx> <0b0944f308ee948afbb6734232e2a7c2@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Aug 2, 2006 at  2:32 AM, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
wrote: 
> On 1 Aug 2006, at 20:11, Charles Coffing wrote:
> 
>> We've been running with a variant of this patch (a variant because
we
>> use tightvnc, which requires different arguments) for many months,
and
>> it works well.
>>
>> Please consider applying to xen- unstable.
> 
> Is there no Python library function that can do this (I couldn't find

> one)?

No.  And as an added twist, I wanted to get the PID of the daemonized
program back (without the mess or risk of writing to a temporary file)
and I didn't see any such thing out there already.

> If not, can you at least put the new code in a function with a 
> spawn- like interface (i.e., takes two parameters --  program name
and 
> program argument list). It's okay to put the new function somewhere 
> nearby in create.py.

I've attached the updated patch with the suggested changes.


Attachment: xen-daemonize-vncviewer.diff
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>