[Mono-bugs] [Bug 489019] mono throwing exception while closing file descriptor 0
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Apr 21 23:37:07 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=489019
User srahul at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=489019#c27
--- Comment #27 from Rahul S <srahul at novell.com> 2009-04-21 21:37:05 MDT ---
The code isn't working even if I don't close the three file descriptors. I used
the following main.c file in place of the one in the sample code given in the
description of this defect.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
main(int argc, char *argv[])
{
int rc;
rc = daemon(0, 0);
if (rc < 0)
exit(EXIT_FAILURE);
return execl("/usr/bin/mono", "/usr/bin/mono", "Main.exe", NULL);
}
In this case the output file test-file.log is not created at all. The file is
created only if I remove the call to daemon().
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list