1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: add support for signal handling on JS backend (#12818)

This commit is contained in:
playX
2021-12-13 21:18:12 +03:00
committed by GitHub
parent d5c0bdf954
commit cb4c67588c
5 changed files with 184 additions and 42 deletions

View File

@ -94,6 +94,10 @@ pub fn (mut p Process) stdin_write(s string) {
#p.val.pid.stdin.write(s)
}
pub fn (mut p Process) stdin_resume() {
#p.val.pid.stdin.resume()
}
// todo(playX): probably does not work
// will read from stdout pipe, will only return when EOF (end of file) or data