This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: FYI: PR 7570 and PR 7578


There was a second patch which fix the problem that allocate the c string
for the directory before forking could you try that one may be use that
one instead of the one you applied. I think this is a problem because (according to posix)
Consequently, to avoid errors, the child process may only execute async-signal-safe operations until such time as one of the exec functions is called, I think memory allocating is not async-signal-safe.


Thanks,
Andrew Pinski

On Tuesday, August 13, 2002, at 09:06 , Tom Tromey wrote:

+
+	  // Change directory.
+	  if (dir != NULL)
+	    {
+	      // We don't care about leaking memory here; this process
+	      // is about to terminate one way or another.
+	      if (chdir (new_string (dir->getPath ())) != 0)
+		{
+		  char c = errno;
+		  write (msgp[1], &c, 1);
+		  _exit (127);
+		}
+	    }






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]