[Mono-bugs] [Bug 489019] mono throwing exception while closing file descriptor 0
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Apr 22 11:50:21 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=489019
User miguel at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=489019#c31
--- Comment #31 from Miguel de Icaza <miguel at novell.com> 2009-04-22 09:50:20 MDT ---
The sample that you provided works just fine.
I used the following C# program:
using System;
using System.IO;
class X {
static void Main ()
{
Console.WriteLine ("Hello there");
using (FileStream fs = File.OpenWrite ("/tmp/Foo")){
}
}
}
And I modified your program to specify the full path to the executable:
#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", "/tmp/Main.exe", NULL);
}
You might want to run on your system:
strace -o log -f your_c_program_that_calls_mono
And review the log file (and you might as well include the log file here so we
can review it).
--
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