Skip to content

Commit

Permalink
Update sample code in ProcessMonitor documentation
Browse files Browse the repository at this point in the history
In 1104a6c an extra BackpressureAuth
parameter was added to ProcessMonitor::create(), but the sample code
was not updated.

[skip ci]
  • Loading branch information
clearyf authored and SeanTAllen committed Feb 7, 2018
1 parent 9afa732 commit 00f6113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/process/process_monitor.pony
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ actor Main
vars.push("PATH=/bin")
// create a ProcessMonitor and spawn the child process
let auth = env.root as AmbientAuth
let pm: ProcessMonitor = ProcessMonitor(auth, consume notifier, path,
consume args, consume vars)
let pm: ProcessMonitor = ProcessMonitor(auth, auth, consume notifier,
path, consume args, consume vars)
// write to STDIN of the child process
pm.write("one, two, three")
pm.done_writing() // closing stdin allows cat to terminate
Expand Down

0 comments on commit 00f6113

Please sign in to comment.