This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/36755] Avoid fork/exec in chmod intrinsic
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2008 21:18:05 -0000
- Subject: [Bug libfortran/36755] Avoid fork/exec in chmod intrinsic
- References: <bug-36755-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from hjl dot tools at gmail dot com 2008-07-09 21:18 -------
(In reply to comment #3)
> > The current fork/exec implementation is incorrect.
>
> How is it incorrect? Since file could have spaces in it, using system is not
> useful at all and even harder to do the correct thing. Really it does not use
> system because creating a string to use with system makes it even more
> incorrect than it is currently.
>
It should handle signal and check return from wait to match pid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36755