MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / dmtcp_ssh_drain

Function dmtcp_ssh_drain

src/plugin/ipc/ssh/ssh.cpp:105–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void
106dmtcp_ssh_drain()
107{
108 if (!sshPluginEnabled) {
109 return;
110 }
111
112 JASSERT(theDrainer == NULL);
113 theDrainer = new SSHDrainer();
114 if (isSshdProcess) { // dmtcp_ssh process
115 theDrainer->beginDrainOf(STDIN_FILENO, sshStdin);
116 theDrainer->beginDrainOf(STDOUT_FILENO);
117 theDrainer->beginDrainOf(STDERR_FILENO);
118 } else {
119 theDrainer->beginDrainOf(sshStdin);
120 theDrainer->beginDrainOf(sshStdout, STDOUT_FILENO);
121 theDrainer->beginDrainOf(sshStderr, STDERR_FILENO);
122 }
123 theDrainer->monitorSockets(DRAINER_CHECK_FREQ);
124}
125
126void
127dmtcp_ssh_resume()

Callers 1

dmtcp_SSH_EventHookFunction · 0.85

Calls 2

monitorSocketsMethod · 0.80
beginDrainOfMethod · 0.45

Tested by

no test coverage detected