Commit 30d07eb1 authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

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
parent 4cbb01c0
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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment