re60.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>&lt;%GLibSpawnFlags&gt;: </title>
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
  7. <link rel="home" href="index.html" title="">
  8. <link rel="up" href="ch01.html" title="GLib">
  9. <link rel="prev" href="re59.html" title="&lt;%GLibSpawnError&gt;">
  10. <link rel="next" href="re61.html" title="&lt;GString&gt;">
  11. <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
  12. <link rel="stylesheet" href="style.css" type="text/css">
  13. </head>
  14. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  15. <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
  16. <td width="100%" align="left" class="shortcuts"></td>
  17. <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
  18. <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
  19. <td><a accesskey="p" href="re59.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
  20. <td><a accesskey="n" href="re61.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
  21. </tr></table>
  22. <div class="refentry">
  23. <a name="id-1.1.61"></a><div class="titlepage"></div>
  24. <div class="refnamediv">
  25. <h2>&lt;%GLibSpawnFlags&gt;</h2>
  26. <p>&lt;%GLibSpawnFlags&gt;</p>
  27. </div>
  28. <div class="refsect1">
  29. <a name="id-1.1.61.2"></a><h2>Description</h2>
  30. <p>Flags passed to <code class="function">g_spawn_sync()</code>, <code class="function">g_spawn_async()</code> and <code class="function">g_spawn_async_with_pipes()</code>.</p>
  31. </div>
  32. <div class="refsect1">
  33. <a name="id-1.1.61.3"></a><h2>Members</h2>
  34. <div class="refsect2">
  35. <a name="id-1.1.61.3.2"></a><h3>default</h3>
  36. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_DEFAULT</code></span></em></p>
  37. <p>no flags, default behaviour</p>
  38. </div>
  39. <div class="refsect2">
  40. <a name="id-1.1.61.3.3"></a><h3>leave-descriptors-open</h3>
  41. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_LEAVE_DESCRIPTORS_OPEN</code></span></em></p>
  42. <p>the parent's open file descriptors will
  43. be inherited by the child; otherwise all descriptors except stdin,
  44. stdout and stderr will be closed before calling <code class="function">exec()</code> in the child.</p>
  45. </div>
  46. <div class="refsect2">
  47. <a name="id-1.1.61.3.4"></a><h3>do-not-reap-child</h3>
  48. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_DO_NOT_REAP_CHILD</code></span></em></p>
  49. <p>the child will not be automatically reaped;
  50. you must use <code class="function">g_child_watch_add()</code> yourself (or call <code class="function">waitpid()</code> or handle
  51. <code class="code">SIGCHLD</code> yourself), or the child will become a zombie.</p>
  52. </div>
  53. <div class="refsect2">
  54. <a name="id-1.1.61.3.5"></a><h3>search-path</h3>
  55. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_SEARCH_PATH</code></span></em></p>
  56. <p><code class="code">argv[0]</code> need not be an absolute path, it will be
  57. looked for in the user's <code class="code">PATH</code>.</p>
  58. </div>
  59. <div class="refsect2">
  60. <a name="id-1.1.61.3.6"></a><h3>stdout-to-dev-null</h3>
  61. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_STDOUT_TO_DEV_NULL</code></span></em></p>
  62. <p>the child's standard output will be discarded,
  63. instead of going to the same location as the parent's standard output.</p>
  64. </div>
  65. <div class="refsect2">
  66. <a name="id-1.1.61.3.7"></a><h3>stderr-to-dev-null</h3>
  67. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_STDERR_TO_DEV_NULL</code></span></em></p>
  68. <p>the child's standard error will be discarded.</p>
  69. </div>
  70. <div class="refsect2">
  71. <a name="id-1.1.61.3.8"></a><h3>child-inherits-stdin</h3>
  72. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_CHILD_INHERITS_STDIN</code></span></em></p>
  73. <p>the child will inherit the parent's standard
  74. input (by default, the child's standard input is attached to <code class="code">/dev/null</code>).</p>
  75. </div>
  76. <div class="refsect2">
  77. <a name="id-1.1.61.3.9"></a><h3>file-and-argv-zero</h3>
  78. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_FILE_AND_ARGV_ZERO</code></span></em></p>
  79. <p>the first element of <code class="code">argv</code> is the file to
  80. execute, while the remaining elements are the actual argument vector
  81. to pass to the file. Normally <code class="function">g_spawn_async_with_pipes()</code> uses <code class="code">argv[0]</code>
  82. as the file to execute, and passes all of <code class="code">argv</code> to the child.</p>
  83. </div>
  84. <div class="refsect2">
  85. <a name="id-1.1.61.3.10"></a><h3>search-path-from-envp</h3>
  86. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_SEARCH_PATH_FROM_ENVP</code></span></em></p>
  87. <p>if <code class="code">argv[0]</code> is not an absolute path,
  88. it will be looked for in the <code class="code">PATH</code> from the passed child environment.
  89. Since: 2.34</p>
  90. </div>
  91. <div class="refsect2">
  92. <a name="id-1.1.61.3.11"></a><h3>cloexec-pipes</h3>
  93. <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_CLOEXEC_PIPES</code></span></em></p>
  94. <p>create all pipes with the <code class="code">O_CLOEXEC</code> flag set.
  95. Since: 2.40</p>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="footer">
  100. <hr>Generated by GTK-Doc V1.33.1</div>
  101. </body>
  102. </html>