static struct pid {
// ...
} *pidlist;
is defined at file scope (and static). It should be initialised to the
default value 0 by the compiler.
this I've not known until now
Your testprogram also looks ok, are you sure this machine doesn't have
a hardware problem?
Tobias
On Sat, Mar 03, 2007 at 01:56:19PM +0100, Dag Leine wrote:
Hallo,
I've just played aroudn with the popen(2)-call. After getting a
segmentation fault on a quite old OpenBSD 3.8 machine I've tried to
understand the source.
/usr/src/lib/libc/gen/popen.c
what I am missing is the
2 matches
Mail list logo