Thanks for your work. I got it. When I try to add the telnet into op commands list, I found something wrong. If I delelte the setpgid(0, 0), the telnet can work normally. But when I exit the telnet, the xorpsh exit too. I cannot find out.
2008/11/14 Bruce M Simpson <[EMAIL PROTECTED]>: > Bruce M Simpson wrote: >>> >>> If the libxorp/popen.cc code is derived from the FreeBSD popen(3) >>> implementation, I think that the "setpgid(0, 0)" in the line 382 of >>> popen.cc should not be existed. >>> > > Sorry, I just re-read your question. > > Whilst it was inspired by FreeBSD's popen(), popen2() is *not* intended as a > drop-in replacement for popen(). > > RunCommand requires specific semantics to run the child process in a > controlled way which can be integrated with the XORP EventLoop. This is > particularly important for the Windows port as the underlying APIs there are > totally different. > > thanks > BMS > -- Best Regard Xiaoshuai Yang _______________________________________________ Xorp-hackers mailing list [email protected] http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
