Commit 52347372 authored by Mart Lubbers's avatar Mart Lubbers

Fix pty for mac

parent 653ef94d
Pipeline #11210 passed with stage
in 1 minute and 42 seconds
......@@ -120,8 +120,8 @@ where
childProcess :: !Int !Int !Int !Int !*World -> (!MaybeOSError (!ProcessHandle, !ProcessIO), !*World)
childProcess slavePty masterPty pipeExecErrorOut pipeExecErrorIn world
//Disable echo
//sizeof(struct termios) on linux gives 60, lets play safe
# termios = malloc 64
//sizeof(struct termios) on linux gives 60, on mac 72, lets play safe
# termios = malloc 128
| termios == 0 = abort "malloc failed"
# (res, world) = tcgetattr slavePty termios world
| res == -1 = getLastOSError world
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment