/usr/include/d/gtkd-3/gio/Subprocess.d is in libgtkd-3-dev 3.7.5-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 | /*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version, with
* some exceptions, please read the COPYING file.
*
* gtkD is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with gtkD; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
*/
// generated automatically - do not change
// find conversion definition on APILookup.txt
// implement new conversion functionalities on the wrap.utils pakage
module gio.Subprocess;
private import gio.AsyncResultIF;
private import gio.Cancellable;
private import gio.InitableIF;
private import gio.InitableT;
private import gio.InputStream;
private import gio.OutputStream;
private import gio.c.functions;
public import gio.c.types;
private import glib.Bytes;
private import glib.ConstructionException;
private import glib.ErrorG;
private import glib.GException;
private import glib.Str;
private import gobject.ObjectG;
public import gtkc.giotypes;
/**
* #GSubprocess allows the creation of and interaction with child
* processes.
*
* Processes can be communicated with using standard GIO-style APIs (ie:
* #GInputStream, #GOutputStream). There are GIO-style APIs to wait for
* process termination (ie: cancellable and with an asynchronous
* variant).
*
* There is an API to force a process to terminate, as well as a
* race-free API for sending UNIX signals to a subprocess.
*
* One major advantage that GIO brings over the core GLib library is
* comprehensive API for asynchronous I/O, such
* g_output_stream_splice_async(). This makes GSubprocess
* significantly more powerful and flexible than equivalent APIs in
* some other languages such as the `subprocess.py`
* included with Python. For example, using #GSubprocess one could
* create two child processes, reading standard output from the first,
* processing it, and writing to the input stream of the second, all
* without blocking the main loop.
*
* A powerful g_subprocess_communicate() API is provided similar to the
* `communicate()` method of `subprocess.py`. This enables very easy
* interaction with a subprocess that has been opened with pipes.
*
* #GSubprocess defaults to tight control over the file descriptors open
* in the child process, avoiding dangling-fd issues that are caused by
* a simple fork()/exec(). The only open file descriptors in the
* spawned process are ones that were explicitly specified by the
* #GSubprocess API (unless %G_SUBPROCESS_FLAGS_INHERIT_FDS was
* specified).
*
* #GSubprocess will quickly reap all child processes as they exit,
* avoiding "zombie processes" remaining around for long periods of
* time. g_subprocess_wait() can be used to wait for this to happen,
* but it will happen even without the call being explicitly made.
*
* As a matter of principle, #GSubprocess has no API that accepts
* shell-style space-separated strings. It will, however, match the
* typical shell behaviour of searching the PATH for executables that do
* not contain a directory separator in their name.
*
* #GSubprocess attempts to have a very simple API for most uses (ie:
* spawning a subprocess with arguments and support for most typical
* kinds of input and output redirection). See g_subprocess_new(). The
* #GSubprocessLauncher API is provided for more complicated cases
* (advanced types of redirection, environment variable manipulation,
* change of working directory, child setup functions, etc).
*
* A typical use of #GSubprocess will involve calling
* g_subprocess_new(), followed by g_subprocess_wait_async() or
* g_subprocess_wait(). After the process exits, the status can be
* checked using functions such as g_subprocess_get_if_exited() (which
* are similar to the familiar WIFEXITED-style POSIX macros).
*
* Since: 2.40
*/
public class Subprocess : ObjectG, InitableIF
{
/** the main Gtk struct */
protected GSubprocess* gSubprocess;
/** Get the main Gtk struct */
public GSubprocess* getSubprocessStruct(bool transferOwnership = false)
{
if (transferOwnership)
ownedRef = false;
return gSubprocess;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)gSubprocess;
}
protected override void setStruct(GObject* obj)
{
gSubprocess = cast(GSubprocess*)obj;
super.setStruct(obj);
}
/**
* Sets our main struct and passes it to the parent class.
*/
public this (GSubprocess* gSubprocess, bool ownedRef = false)
{
this.gSubprocess = gSubprocess;
super(cast(GObject*)gSubprocess, ownedRef);
}
// add the Initable capabilities
mixin InitableT!(GSubprocess);
/** */
public static GType getType()
{
return g_subprocess_get_type();
}
/**
* Create a new process with the given flags and argument list.
*
* The argument list is expected to be %NULL-terminated.
*
* Params:
* argv = commandline arguments for the subprocess
* flags = flags that define the behaviour of the subprocess
*
* Returns: A newly created #GSubprocess, or %NULL on error (and @error
* will be set)
*
* Since: 2.40
*
* Throws: GException on failure.
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this(string[] argv, GSubprocessFlags flags)
{
GError* err = null;
auto p = g_subprocess_newv(Str.toStringzArray(argv), flags, &err);
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
if(p is null)
{
throw new ConstructionException("null returned by newv");
}
this(cast(GSubprocess*) p, true);
}
/**
* Communicate with the subprocess until it terminates, and all input
* and output has been completed.
*
* If @stdin_buf is given, the subprocess must have been created with
* %G_SUBPROCESS_FLAGS_STDIN_PIPE. The given data is fed to the
* stdin of the subprocess and the pipe is closed (ie: EOF).
*
* At the same time (as not to cause blocking when dealing with large
* amounts of data), if %G_SUBPROCESS_FLAGS_STDOUT_PIPE or
* %G_SUBPROCESS_FLAGS_STDERR_PIPE were used, reads from those
* streams. The data that was read is returned in @stdout and/or
* the @stderr.
*
* If the subprocess was created with %G_SUBPROCESS_FLAGS_STDOUT_PIPE,
* @stdout_buf will contain the data read from stdout. Otherwise, for
* subprocesses not created with %G_SUBPROCESS_FLAGS_STDOUT_PIPE,
* @stdout_buf will be set to %NULL. Similar provisions apply to
* @stderr_buf and %G_SUBPROCESS_FLAGS_STDERR_PIPE.
*
* As usual, any output variable may be given as %NULL to ignore it.
*
* If you desire the stdout and stderr data to be interleaved, create
* the subprocess with %G_SUBPROCESS_FLAGS_STDOUT_PIPE and
* %G_SUBPROCESS_FLAGS_STDERR_MERGE. The merged result will be returned
* in @stdout_buf and @stderr_buf will be set to %NULL.
*
* In case of any error (including cancellation), %FALSE will be
* returned with @error set. Some or all of the stdin data may have
* been written. Any stdout or stderr data that has been read will be
* discarded. None of the out variables (aside from @error) will have
* been set to anything in particular and should not be inspected.
*
* In the case that %TRUE is returned, the subprocess has exited and the
* exit status inspection APIs (eg: g_subprocess_get_if_exited(),
* g_subprocess_get_exit_status()) may be used.
*
* You should not attempt to use any of the subprocess pipes after
* starting this function, since they may be left in strange states,
* even if the operation was cancelled. You should especially not
* attempt to interact with the pipes while the operation is in progress
* (either from another thread or if using the asynchronous version).
*
* Params:
* stdinBuf = data to send to the stdin of the subprocess, or %NULL
* cancellable = a #GCancellable
* stdoutBuf = data read from the subprocess stdout
* stderrBuf = data read from the subprocess stderr
*
* Returns: %TRUE if successful
*
* Since: 2.40
*
* Throws: GException on failure.
*/
public bool communicate(Bytes stdinBuf, Cancellable cancellable, out Bytes stdoutBuf, out Bytes stderrBuf)
{
GBytes* outstdoutBuf = null;
GBytes* outstderrBuf = null;
GError* err = null;
auto p = g_subprocess_communicate(gSubprocess, (stdinBuf is null) ? null : stdinBuf.getBytesStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &outstdoutBuf, &outstderrBuf, &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
stdoutBuf = new Bytes(outstdoutBuf);
stderrBuf = new Bytes(outstderrBuf);
return p;
}
/**
* Asynchronous version of g_subprocess_communicate(). Complete
* invocation with g_subprocess_communicate_finish().
*
* Params:
* stdinBuf = Input data, or %NULL
* cancellable = Cancellable
* callback = Callback
* userData = User data
*/
public void communicateAsync(Bytes stdinBuf, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)
{
g_subprocess_communicate_async(gSubprocess, (stdinBuf is null) ? null : stdinBuf.getBytesStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData);
}
/**
* Complete an invocation of g_subprocess_communicate_async().
*
* Params:
* result = Result
* stdoutBuf = Return location for stdout data
* stderrBuf = Return location for stderr data
*
* Throws: GException on failure.
*/
public bool communicateFinish(AsyncResultIF result, out Bytes stdoutBuf, out Bytes stderrBuf)
{
GBytes* outstdoutBuf = null;
GBytes* outstderrBuf = null;
GError* err = null;
auto p = g_subprocess_communicate_finish(gSubprocess, (result is null) ? null : result.getAsyncResultStruct(), &outstdoutBuf, &outstderrBuf, &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
stdoutBuf = new Bytes(outstdoutBuf);
stderrBuf = new Bytes(outstderrBuf);
return p;
}
/**
* Like g_subprocess_communicate(), but validates the output of the
* process as UTF-8, and returns it as a regular NUL terminated string.
*
* Params:
* stdinBuf = data to send to the stdin of the subprocess, or %NULL
* cancellable = a #GCancellable
* stdoutBuf = data read from the subprocess stdout
* stderrBuf = data read from the subprocess stderr
*
* Throws: GException on failure.
*/
public bool communicateUtf8(string stdinBuf, Cancellable cancellable, out string stdoutBuf, out string stderrBuf)
{
char* outstdoutBuf = null;
char* outstderrBuf = null;
GError* err = null;
auto p = g_subprocess_communicate_utf8(gSubprocess, Str.toStringz(stdinBuf), (cancellable is null) ? null : cancellable.getCancellableStruct(), &outstdoutBuf, &outstderrBuf, &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
stdoutBuf = Str.toString(outstdoutBuf);
stderrBuf = Str.toString(outstderrBuf);
return p;
}
/**
* Asynchronous version of g_subprocess_communicate_utf8(). Complete
* invocation with g_subprocess_communicate_utf8_finish().
*
* Params:
* stdinBuf = Input data, or %NULL
* cancellable = Cancellable
* callback = Callback
* userData = User data
*/
public void communicateUtf8Async(string stdinBuf, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)
{
g_subprocess_communicate_utf8_async(gSubprocess, Str.toStringz(stdinBuf), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData);
}
/**
* Complete an invocation of g_subprocess_communicate_utf8_async().
*
* Params:
* result = Result
* stdoutBuf = Return location for stdout data
* stderrBuf = Return location for stderr data
*
* Throws: GException on failure.
*/
public bool communicateUtf8Finish(AsyncResultIF result, out string stdoutBuf, out string stderrBuf)
{
char* outstdoutBuf = null;
char* outstderrBuf = null;
GError* err = null;
auto p = g_subprocess_communicate_utf8_finish(gSubprocess, (result is null) ? null : result.getAsyncResultStruct(), &outstdoutBuf, &outstderrBuf, &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
stdoutBuf = Str.toString(outstdoutBuf);
stderrBuf = Str.toString(outstderrBuf);
return p;
}
/**
* Use an operating-system specific method to attempt an immediate,
* forceful termination of the process. There is no mechanism to
* determine whether or not the request itself was successful;
* however, you can use g_subprocess_wait() to monitor the status of
* the process after calling this function.
*
* On Unix, this function sends %SIGKILL.
*
* Since: 2.40
*/
public void forceExit()
{
g_subprocess_force_exit(gSubprocess);
}
/**
* Check the exit status of the subprocess, given that it exited
* normally. This is the value passed to the exit() system call or the
* return value from main.
*
* This is equivalent to the system WEXITSTATUS macro.
*
* It is an error to call this function before g_subprocess_wait() and
* unless g_subprocess_get_if_exited() returned %TRUE.
*
* Returns: the exit status
*
* Since: 2.40
*/
public int getExitStatus()
{
return g_subprocess_get_exit_status(gSubprocess);
}
/**
* On UNIX, returns the process ID as a decimal string.
* On Windows, returns the result of GetProcessId() also as a string.
*/
public string getIdentifier()
{
return Str.toString(g_subprocess_get_identifier(gSubprocess));
}
/**
* Check if the given subprocess exited normally (ie: by way of exit()
* or return from main()).
*
* This is equivalent to the system WIFEXITED macro.
*
* It is an error to call this function before g_subprocess_wait() has
* returned.
*
* Returns: %TRUE if the case of a normal exit
*
* Since: 2.40
*/
public bool getIfExited()
{
return g_subprocess_get_if_exited(gSubprocess) != 0;
}
/**
* Check if the given subprocess terminated in response to a signal.
*
* This is equivalent to the system WIFSIGNALED macro.
*
* It is an error to call this function before g_subprocess_wait() has
* returned.
*
* Returns: %TRUE if the case of termination due to a signal
*
* Since: 2.40
*/
public bool getIfSignaled()
{
return g_subprocess_get_if_signaled(gSubprocess) != 0;
}
/**
* Gets the raw status code of the process, as from waitpid().
*
* This value has no particular meaning, but it can be used with the
* macros defined by the system headers such as WIFEXITED. It can also
* be used with g_spawn_check_exit_status().
*
* It is more likely that you want to use g_subprocess_get_if_exited()
* followed by g_subprocess_get_exit_status().
*
* It is an error to call this function before g_subprocess_wait() has
* returned.
*
* Returns: the (meaningless) waitpid() exit status from the kernel
*
* Since: 2.40
*/
public int getStatus()
{
return g_subprocess_get_status(gSubprocess);
}
/**
* Gets the #GInputStream from which to read the stderr output of
* @subprocess.
*
* The process must have been created with
* %G_SUBPROCESS_FLAGS_STDERR_PIPE.
*
* Returns: the stderr pipe
*
* Since: 2.40
*/
public InputStream getStderrPipe()
{
auto p = g_subprocess_get_stderr_pipe(gSubprocess);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(InputStream)(cast(GInputStream*) p);
}
/**
* Gets the #GOutputStream that you can write to in order to give data
* to the stdin of @subprocess.
*
* The process must have been created with
* %G_SUBPROCESS_FLAGS_STDIN_PIPE.
*
* Returns: the stdout pipe
*
* Since: 2.40
*/
public OutputStream getStdinPipe()
{
auto p = g_subprocess_get_stdin_pipe(gSubprocess);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(OutputStream)(cast(GOutputStream*) p);
}
/**
* Gets the #GInputStream from which to read the stdout output of
* @subprocess.
*
* The process must have been created with
* %G_SUBPROCESS_FLAGS_STDOUT_PIPE.
*
* Returns: the stdout pipe
*
* Since: 2.40
*/
public InputStream getStdoutPipe()
{
auto p = g_subprocess_get_stdout_pipe(gSubprocess);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(InputStream)(cast(GInputStream*) p);
}
/**
* Checks if the process was "successful". A process is considered
* successful if it exited cleanly with an exit status of 0, either by
* way of the exit() system call or return from main().
*
* It is an error to call this function before g_subprocess_wait() has
* returned.
*
* Returns: %TRUE if the process exited cleanly with a exit status of 0
*
* Since: 2.40
*/
public bool getSuccessful()
{
return g_subprocess_get_successful(gSubprocess) != 0;
}
/**
* Get the signal number that caused the subprocess to terminate, given
* that it terminated due to a signal.
*
* This is equivalent to the system WTERMSIG macro.
*
* It is an error to call this function before g_subprocess_wait() and
* unless g_subprocess_get_if_signaled() returned %TRUE.
*
* Returns: the signal causing termination
*
* Since: 2.40
*/
public int getTermSig()
{
return g_subprocess_get_term_sig(gSubprocess);
}
/**
* Sends the UNIX signal @signal_num to the subprocess, if it is still
* running.
*
* This API is race-free. If the subprocess has terminated, it will not
* be signalled.
*
* This API is not available on Windows.
*
* Params:
* signalNum = the signal number to send
*
* Since: 2.40
*/
public void sendSignal(int signalNum)
{
g_subprocess_send_signal(gSubprocess, signalNum);
}
/**
* Synchronously wait for the subprocess to terminate.
*
* After the process terminates you can query its exit status with
* functions such as g_subprocess_get_if_exited() and
* g_subprocess_get_exit_status().
*
* This function does not fail in the case of the subprocess having
* abnormal termination. See g_subprocess_wait_check() for that.
*
* Cancelling @cancellable doesn't kill the subprocess. Call
* g_subprocess_force_exit() if it is desirable.
*
* Params:
* cancellable = a #GCancellable
*
* Returns: %TRUE on success, %FALSE if @cancellable was cancelled
*
* Since: 2.40
*
* Throws: GException on failure.
*/
public bool wait(Cancellable cancellable)
{
GError* err = null;
auto p = g_subprocess_wait(gSubprocess, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
/**
* Wait for the subprocess to terminate.
*
* This is the asynchronous version of g_subprocess_wait().
*
* Params:
* cancellable = a #GCancellable, or %NULL
* callback = a #GAsyncReadyCallback to call when the operation is complete
* userData = user_data for @callback
*
* Since: 2.40
*/
public void waitAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData)
{
g_subprocess_wait_async(gSubprocess, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData);
}
/**
* Combines g_subprocess_wait() with g_spawn_check_exit_status().
*
* Params:
* cancellable = a #GCancellable
*
* Returns: %TRUE on success, %FALSE if process exited abnormally, or
* @cancellable was cancelled
*
* Since: 2.40
*
* Throws: GException on failure.
*/
public bool waitCheck(Cancellable cancellable)
{
GError* err = null;
auto p = g_subprocess_wait_check(gSubprocess, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
/**
* Combines g_subprocess_wait_async() with g_spawn_check_exit_status().
*
* This is the asynchronous version of g_subprocess_wait_check().
*
* Params:
* cancellable = a #GCancellable, or %NULL
* callback = a #GAsyncReadyCallback to call when the operation is complete
* userData = user_data for @callback
*
* Since: 2.40
*/
public void waitCheckAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData)
{
g_subprocess_wait_check_async(gSubprocess, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData);
}
/**
* Collects the result of a previous call to
* g_subprocess_wait_check_async().
*
* Params:
* result = the #GAsyncResult passed to your #GAsyncReadyCallback
*
* Returns: %TRUE if successful, or %FALSE with @error set
*
* Since: 2.40
*
* Throws: GException on failure.
*/
public bool waitCheckFinish(AsyncResultIF result)
{
GError* err = null;
auto p = g_subprocess_wait_check_finish(gSubprocess, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
/**
* Collects the result of a previous call to
* g_subprocess_wait_async().
*
* Params:
* result = the #GAsyncResult passed to your #GAsyncReadyCallback
*
* Returns: %TRUE if successful, or %FALSE with @error set
*
* Since: 2.40
*
* Throws: GException on failure.
*/
public bool waitFinish(AsyncResultIF result)
{
GError* err = null;
auto p = g_subprocess_wait_finish(gSubprocess, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0;
if (err !is null)
{
throw new GException( new ErrorG(err) );
}
return p;
}
}
|