From: Admin Tensor Date: 2013-05-11T23:31:09+09:00 Subject: Re: File Problem with pty and irb Hi, After further investigation, it turns out that "getlogin()" in mycode.c is the one that does not work when it is spawned by PTY. It is working now. Thanks for all of you who tried to help. Best regards, Bill -- Posted via http://www.ruby-forum.com/.