Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79370

Struggling with python-daemon and subprocess module to work together

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <kumarpraveen.nitdgp@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.038
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'suppose': 0.07; '[0]': 0.09; 'executed': 0.09; 'kumar': 0.09; 'subject:module': 0.09; 'missed': 0.12; 'url:fedoraproject': 0.16; 'subject:python': 0.16; 'module': 0.19; 'command': 0.22; 'machine': 0.22; 'previously': 0.22; 'error': 0.23; 'controlling': 0.24; 'tells': 0.24; 'message- id:@mail.gmail.com': 0.30; 'url:wiki': 0.31; 'figure': 0.32; 'run': 0.32; 'subject:with': 0.35; 'basic': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'hi,': 0.36; 'url:org': 0.36; 'virtual': 0.37; 'server': 0.38; 'to:addr:python- list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'skip:* 10': 0.61; 'happen': 0.63; 'url:blogspot': 0.65; 'url:user': 0.65; 'due': 0.66; 'side': 0.67; 'execution.': 0.84; 'subject:together': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=T8PdySIx6QZKvkhRuND1Kj9uW63O6zp/NpOMzKTCWlI=; b=tPem8QHCqQNISceo4Ji2lSuG2ww6fefIxSPUxDZpdgp3eSlEfwNqq0KWBvYbH4GNo0 rlzkT0foqLHKt75VoP8elVsMBjKsIVYn8H2YK5N4mfnyyEEaIzBW03fh0kJBVITHFscc W5dDYoPQ8m5++2bjjY70+0942wpLpLmQ0VazfrTjwWyOTTNbxtoKed8j21dI23FEgA/E QPUnzrWdh9p0EzdXV7/ek30LYLFRC/sljdQGXtVoUID0dMs0maTpwRQ7kPAi4p6vXaqz WSopVas6+j8qNw1kUIgShGcu9Nc7LIpwegCVZAytCKlEWDhyg6QWyiHM/wxA2ozltdwL 3sGw==
X-Received by 10.152.234.36 with SMTP id ub4mr26307560lac.25.1413796617928; Mon, 20 Oct 2014 02:16:57 -0700 (PDT)
MIME-Version 1.0
From Praveen Kumar <kumarpraveen.nitdgp@gmail.com>
Date Mon, 20 Oct 2014 14:46:37 +0530
Subject Struggling with python-daemon and subprocess module to work together
To python-list@python.org
Content-Type text/plain; charset=UTF-8
X-Mailman-Approved-At Tue, 21 Oct 2014 09:11:26 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15029.1413875486.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1413875486 news.xs4all.nl 2886 [2001:888:2000:d::a6]:39245
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:79370

Show key headers only | View raw


Hi,

I am writing a very basic server side application[0] which get data
from a client and create a virtual machine using provided data and
also tells client about what's going on during *virt-install* command
execution. Previously this basic server is executed using *openvt* but
I thought it would be nice to have a daemon process for it and used
python-daemon.

Issue I am facing is after some time server will stop sending data to
client which suppose to happen in #120 and get error message "Cannot
run interactive console without a controlling TTY" . I am not able to
figure out issue is occurred due to module or I missed something
during daemon initialization.



[0] http://fpaste.org/143455/

-- 
Praveen Kumar
http://fedoraproject.org/wiki/User:Kumarpraveen
http://fedoraproject.org/
http://kumar-pravin.blogspot.com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Struggling with python-daemon and subprocess module to work together Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 2014-10-20 14:46 +0530

csiph-web