|
From: John R. <jr...@bi...> - 2010-08-02 21:58:55
|
> exp-ptrcheck: the 'impossible' happened:
> unhandled syscall
> ==23257== at 0x38012EC4: ??? (in /usr/lib64/valgrind/exp-ptrcheck-amd64-linux)
>
> sched status:
> running_tid=1
>
> Thread 1: status = VgTs_Runnable
> ==23257== at 0x8AA8307: pipe2 (in /lib64/libc-2.10.1.so)
> ==23257== by 0xCA4F8F3: ??? (in /usr/lib64/libglib-2.0.so.0.2200.4)
Just ignore the second argument to pipe2. O_NONBLOCK and O_CLOEXEC
are the only defined options. O_CLOEXEC is a security option only.
O_NONBLOCK is functionality, so your program might fail, but maybe
you will find the bug first.
-----
int
pipe2(int pipefd[2], int flags)
{
return pipe(pipefd);
}
-----
--
|