Displaying 2 results from an estimated 2 matches for "start_view".
Did you mean:
short_view
2006 Jul 13
3
[PATCH] Update new qemu-dm to spawn vncviewer
...evice },
{ "smp", HAS_ARG, QEMU_OPTION_smp },
{ "vnc", HAS_ARG, QEMU_OPTION_vnc },
+ { "vncviewer", 0, QEMU_OPTION_vncviewer },
/* temporary options */
{ "usb", 0, QEMU_OPTION_usb },
@@ -5240,6 +5246,31 @@
return 0;
}
+int start_viewer(int port)
+{
+ int pid;
+ char ports[16];
+
+ sprintf(ports, ":%d", VNC_BASE_PORT + port);
+ switch (pid = fork()) {
+
+ case -1:
+ fprintf(stderr, "vncviewer failed fork\n");
+ exit(1);
+
+ case 0: /* child */
+ execlp("vncviewer", "vncviewer&...
2006 Apr 04
5
getting the value of a form select
...oller
def list
@active_client = session[:active_client]
@clients = Client.find_all.collect {|c| [ c.name, c.id ] }
end
def change_active_client
session[:active_client] = params[:client]
redirect_to(:action => "list")
end
end
------END_CONTROLER-------
------START_VIEW-----------
<%= form_tag (:action => "change_active_client")%>
<%= select(:client, :id, @clients) %>
<input type="submit" value="Change" />
<%= end_form_tag%>
content of the session: <%=h(session[:active_client])%> <br/>
cont...