remove controling term with ioctl back fall to stdin use buf to communicate with child gets status