Commit c69698de authored by Martín Ferrari's avatar Martín Ferrari

Subprocess class skeleton

parent f0dfc052
#!/usr/bin/env python
# vim:ts=4:sw=4:et:ai:sts=4
import os, signal
class Subprocess(object):
def __init__(self, uid, gid, file, argv, cwd = None, env = None,
stdin = None, stdout = None, stderr = None):
self._pid = -1
@property
def pid(self):
return self._pid
def poll(self):
return None
def wait(self):
return 0
def kill(self, sig = signal.SIGTERM):
return self._pid
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment