mirror of https://github.com/GNOME/gimp.git
On Win32 prevent plug-in from inheriting GIMP's ends of the pipes. Fixes
2007-01-25 Tor Lillqvist <tml@novell.com> * app/plug-in/gimpplugin.c (gimp_plug_in_open): On Win32 prevent plug-in from inheriting GIMP's ends of the pipes. Fixes #363501. svn path=/trunk/; revision=21779
This commit is contained in:
parent
4cbb01c0f2
commit
30d07eb162
|
@ -1,3 +1,8 @@
|
|||
2007-01-25 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* app/plug-in/gimpplugin.c (gimp_plug_in_open): On Win32 prevent
|
||||
plug-in from inheriting GIMP's ends of the pipes. Fixes #363501.
|
||||
|
||||
2007-01-24 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/plug-ins/palette-offset.py: applied patch from
|
||||
|
|
|
@ -245,6 +245,12 @@ gimp_plug_in_open (GimpPlugIn *plug_in,
|
|||
setmode (my_write[1], _O_BINARY);
|
||||
#endif
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
/* Prevent the plug-in from inheriting our ends of the pipes */
|
||||
SetHandleInformation ((HANDLE) _get_osfhandle (my_read[0]), HANDLE_FLAG_INHERIT, 0);
|
||||
SetHandleInformation ((HANDLE) _get_osfhandle (my_write[1]), HANDLE_FLAG_INHERIT, 0);
|
||||
#endif
|
||||
|
||||
plug_in->my_read = g_io_channel_unix_new (my_read[0]);
|
||||
plug_in->my_write = g_io_channel_unix_new (my_write[1]);
|
||||
plug_in->his_read = g_io_channel_unix_new (my_write[0]);
|
||||
|
|
Loading…
Reference in New Issue