Use the Posix process driver on all Posix operating systems.
This commit is contained in:
parent
7ebad49ed0
commit
f1c2eb779f
|
@ -55,7 +55,7 @@ final class PosixEventDriver(Loop : PosixEventLoop) : EventDriver {
|
||||||
version (linux) alias WatcherDriver = InotifyEventDriverWatchers!EventsDriver;
|
version (linux) alias WatcherDriver = InotifyEventDriverWatchers!EventsDriver;
|
||||||
//else version (OSX) alias WatcherDriver = FSEventsEventDriverWatchers!EventsDriver;
|
//else version (OSX) alias WatcherDriver = FSEventsEventDriverWatchers!EventsDriver;
|
||||||
else alias WatcherDriver = PollEventDriverWatchers!EventsDriver;
|
else alias WatcherDriver = PollEventDriverWatchers!EventsDriver;
|
||||||
version (linux) alias ProcessDriver = SignalEventDriverProcesses!Loop;
|
version (Posix) alias ProcessDriver = PosixEventDriverProcesses!Loop;
|
||||||
else alias ProcessDriver = DummyEventDriverProcesses!Loop;
|
else alias ProcessDriver = DummyEventDriverProcesses!Loop;
|
||||||
|
|
||||||
Loop m_loop;
|
Loop m_loop;
|
||||||
|
|
|
@ -133,7 +133,7 @@ private auto lockedProcessInfo(alias fn)(ProcessID pid) @trusted {
|
||||||
|
|
||||||
private enum SIGCHLD = 17;
|
private enum SIGCHLD = 17;
|
||||||
|
|
||||||
final class SignalEventDriverProcesses(Loop : PosixEventLoop) : EventDriverProcesses {
|
final class PosixEventDriverProcesses(Loop : PosixEventLoop) : EventDriverProcesses {
|
||||||
@safe: /*@nogc:*/ nothrow:
|
@safe: /*@nogc:*/ nothrow:
|
||||||
import core.stdc.errno : errno, EAGAIN, EINPROGRESS;
|
import core.stdc.errno : errno, EAGAIN, EINPROGRESS;
|
||||||
import core.sys.linux.sys.signalfd;
|
import core.sys.linux.sys.signalfd;
|
||||||
|
|
Loading…
Reference in a new issue