Process.run
by Peter Bortas (nu med mindre Opera) @ Pike (-) developers forum
15 Jul '08
15 Jul '08
I just checked in a Process.run() in 7.7:
http://pike.ida.liu.se/development/cvs/diff.xml?module=Pike&file=7.7/lib/mo…
The rational for that is that I was once again reminded by a user this
week that getting Process.create_process() or Process.Process right
without some corner case blocking is hard. It's not obvious that if
you bind pipes to booth stderr and stdout you have to take in to
account that OS buffers are not limetless.
Process.run() is a thin wrapper around Process.Process …
[View More]that collects
stdout, stderr and exitcode and return them in a mapping. This could
potentially result in huge strings, but will do what most users want
and even already do when they call create_process() with both pipes
bound.
Something like this should be in 7.8, but I'm open to suggestions for
other things that might be usefull to return in the mapping or for
changing member names.
[View Less]
5
7
Pike 7.6
by Martin Nilsson (DivX Inc.) @ Pike (-) developers forum
23 Aug '06
23 Aug '06
It is time for a new release of Pike 7.6. Is there anyone who can do the
release notes? If not, we'll just wait a bit longer...
Here's a patch to add in System.setproctitle() for systems that have it.
Adam
4
8
Debian
by Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
06 Apr '06
06 Apr '06
Pike 7.6 for debian applies the SSL patch from Thomas Bopp. A working
solution is already check into Pike 7.6, so don't use the debian
Pike until the patch is removed.
2
2
Debian
by Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
31 Mar '06
31 Mar '06
Pike 7.6 for debian applies the SSL patch from Thomas Bopp. A working
solution is already check into Pike 7.6, so don't use the debian
Pike until the patch is removed.
1
0
Debian
by Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
31 Mar '06
31 Mar '06
Pike 7.6 for debian applies the SSL patch from Thomas Bopp. A working
solution is already check into Pike 7.6, so don't use the debian
Pike until the patch is removed.
picairo - Pike bindings for Cairo
With picairo, you have access to most of the public API of cairo
1.0.x, directly from Pike.
This is the first release.
More information is at:
http://hack.davve.net/hack/picairo-site
Trying to get a simple TreeView to display a list of strings I tried
something like this:
g_ui = GTK2.GladeXML("some_ui.glade");
g_ui->get_widget("test_treeview")->set_model(GTK2.ListStore(({"string"})));
To my surprise, the following returns zero:
g_ui->get_widget("test_treeview")->get_model();
After some digging I found out that the generated code for
GTK2.TreeView set_model failes to get a GObject from argument when it
does something like this (returns NULL):
…
[View More]GTK_TREE_MODEL(get_pg2object(<obj_on_stack>, pgtk2_tree_model_program));
For reference, the meat in get_pg2object does this:
o=(struct object_wrapper *)get_storage(from,type);
return o->obj;
But the storage for pgtk2_tree_model_program is a 'struct
mixin_wrapper' so the cast seems dubious in this case.
I suspect that the content of the mixin_wrapper (offset) should be
used to pin-point the relevant 'object_wrapper' for a given
program. Should some find of specialized function be introduced for
this?
I have this in my source/support.c just to get my simple example to
work:
GObject *get_pg2object_mixin(struct object *from, struct program *type) {
struct object_wrapper * o;
struct mixin_wrapper * m;
if (!from)
return NULL;
m=(struct mixin_wrapper *)get_storage(from,type);
o=(struct object_wrapper *)from->storage + m->offset;
return o->obj;
}
and then uses that in TreeView.set_model()
This requires the caller to know if an object is a mixin-object or
not. Is it better so to mark mixin-programs in some way so that
get_pg2object() knows better how to extract object_wrappers from
storage? Or have I missed something fundamental?
[View Less]
Does pike not load modules completely when they are first accessed? I
have some long running (24/7) pike scripts, and I just noticed that if
I upgrade a C module they use, all those pikes will segfault.
Adam