libxl: hotplug scripts: stdout >& stderr
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 18 Mar 2014 16:33:06 +0000 (16:33 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 19 Mar 2014 13:40:24 +0000 (13:40 +0000)
Plumb hotplug scripts' stdout to stderr.  That way if they print
anything (which really they shouldn't), it won't get mixed up with
the application's stdout.  (Eg, perhaps with an xl migration
stream...)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Vasiliy Tolstov <v.tolstov@selfip.ru>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_device.c

index ba7d100d0e3633ab0442ae06a97d77058cafe8d5..90f76b7a064c57b0896e292e71cd757107dfba77 100644 (file)
@@ -1031,7 +1031,7 @@ static void device_hotplug(libxl__egc *egc, libxl__ao_device *aodev)
 
     if (!pid) {
         /* child */
-        libxl__exec(gc, -1, -1, -1, args[0], args, env);
+        libxl__exec(gc, -1, 2, -1, args[0], args, env);
         /* notreached */
         abort();
     }