On Fri, Apr 08, 2005 at 09:34:30AM -0400, Daniel Jacobowitz wrote:
> > gdb reports assertion failure in a program with daemon / sleep. This
> > could be somehow related to #194254.
>
> And.... is there some way I can reproduce this?
Sorry, the message was not so obvious as it seemed to me :) .
Here you are:
int main(void)
{
daemon(0, 0);
syslog(1, "%d\n", getpid());
sleep(10);
}
gcc -g a.c -lpthread
gdb a.out
r
at <pid from syslog>
Thanks in advance,
Baurzhan.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]