hi ,
I have invoked xm commands(create, shutdown,pause...) inside C
programs(fork/exec),
But, while connecting to console when creating a domain it gives following
error:
Traceback (most recent call last):
File "/usr/sbin/xm", line 9, in ?
main.main(sys.argv)
File "/usr/lib/python/xen/xm/main.py", line 808, in main
xm.main(args)
File "/usr/lib/python/xen/xm/main.py", line 106, in main
self.main_call(args)
File "/usr/lib/python/xen/xm/main.py", line 124, in main_call
p.main(args[1:])
File "/usr/lib/python/xen/xm/main.py", line 259, in main
create.main(args)
File "/usr/lib/python/xen/xm/create.py", line 550, in main
console_client.connect(''localhost'', console)
File "/usr/lib/python/xen/util/console_client.py", line 77, in
connect
tcsetattr(0, TCSAFLUSH, nattrs)
termios.error: (5, ''Input/output error'')
Traceback (most recent call last):
File "/usr/sbin/xm", line 9, in ?
main.main(sys.argv)
File "/usr/lib/python/xen/xm/main.py", line 808, in main
xm.main(args)
File "/usr/lib/python/xen/xm/main.py", line 106, in main
self.main_call(args)
File "/usr/lib/python/xen/xm/main.py", line 124, in main_call
p.main(args[1:])
File "/usr/lib/python/xen/xm/main.py", line 259, in main
create.main(args)
File "/usr/lib/python/xen/xm/create.py", line 550, in main
console_client.connect(''localhost'', console)
File "/usr/lib/python/xen/util/console_client.py", line 86, in
connect
__send_to_sock(sock)
File "/usr/lib/python/xen/util/console_client.py", line 44, in
__send_to_sock
data = os.read(0,1024)
OSError: [Errno 5] Input/output error
Body of code:
.....
pid = fork();
if(pid == 0)
{
execl("/usr/sbin/xm","xm","create","xmexample1","-c",NULL)
;
}
.....
there is no waitpid() called,
When I invoke waitpid() call, this error goes away.
Kindly advise me on this.
Thanks and Regards,
Amit Kumar
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users