()
| 473 | } |
| 474 | |
| 475 | func (cc *clientConnection) Close() error { |
| 476 | // Close stdin and stdout and send SIGINT (if supported) to the plugin, |
| 477 | // then wait for it to cleanup and exit. |
| 478 | cc.close() |
| 479 | cc.cmd.Process.Signal(os.Interrupt) |
| 480 | return cc.cmd.Wait() |
| 481 | } |
| 482 | |
| 483 | func writeStanza(conn io.Writer, t string, args ...string) error { |
| 484 | s := &format.Stanza{Type: t, Args: args} |
no outgoing calls