3.1.9.1. DaemonSubprocess

This module provides functions to run Daemon process.

class PyDvi.Tools.DaemonSubprocess.DaemonSubprocess(working_directory)[source]

Bases: object

This class implements a Daemon sub-process.

fifos = ()

List of fifos to be created.

kill()[source]

Send Kill signal to the child process.

make_args()[source]

Return the args for Popen. To be implemented in subclass.

restart()[source]

Restart the child process.

start()[source]

Start the child process.

stop()[source]

Stop the child process.

exception PyDvi.Tools.DaemonSubprocess.SubprocessError[source]

Bases: exceptions.EnvironmentError

PyDvi.Tools.DaemonSubprocess.make_nonblocking(fd)[source]

Makes a file descriptor non-blocking.

When a non-blocking file is read, the read does not wait for end-of-file. Instead, the read can return just as soon as there is nothing left to read. This might be because a buffer is empty.

See Python Cookbook, Recipe 6.6.

Previous topic

3.1.9. Tools

Next topic

3.1.9.2. EnumFactory

This Page