123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title><%GLibSpawnFlags>: </title>
- <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
- <link rel="home" href="index.html" title="">
- <link rel="up" href="ch01.html" title="GLib">
- <link rel="prev" href="re59.html" title="<%GLibSpawnError>">
- <link rel="next" href="re61.html" title="<GString>">
- <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
- <link rel="stylesheet" href="style.css" type="text/css">
- </head>
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
- <td width="100%" align="left" class="shortcuts"></td>
- <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
- <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
- <td><a accesskey="p" href="re59.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
- <td><a accesskey="n" href="re61.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
- </tr></table>
- <div class="refentry">
- <a name="id-1.1.61"></a><div class="titlepage"></div>
- <div class="refnamediv">
- <h2><%GLibSpawnFlags></h2>
- <p><%GLibSpawnFlags></p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.61.2"></a><h2>Description</h2>
- <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>
- </div>
- <div class="refsect1">
- <a name="id-1.1.61.3"></a><h2>Members</h2>
- <div class="refsect2">
- <a name="id-1.1.61.3.2"></a><h3>default</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_DEFAULT</code></span></em></p>
- <p>no flags, default behaviour</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.61.3.3"></a><h3>leave-descriptors-open</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_LEAVE_DESCRIPTORS_OPEN</code></span></em></p>
- <p>the parent's open file descriptors will
- be inherited by the child; otherwise all descriptors except stdin,
- stdout and stderr will be closed before calling <code class="function">exec()</code> in the child.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.61.3.4"></a><h3>do-not-reap-child</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_DO_NOT_REAP_CHILD</code></span></em></p>
- <p>the child will not be automatically reaped;
- you must use <code class="function">g_child_watch_add()</code> yourself (or call <code class="function">waitpid()</code> or handle
- <code class="code">SIGCHLD</code> yourself), or the child will become a zombie.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.61.3.5"></a><h3>search-path</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_SEARCH_PATH</code></span></em></p>
- <p><code class="code">argv[0]</code> need not be an absolute path, it will be
- looked for in the user's <code class="code">PATH</code>.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.61.3.6"></a><h3>stdout-to-dev-null</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_STDOUT_TO_DEV_NULL</code></span></em></p>
- <p>the child's standard output will be discarded,
- instead of going to the same location as the parent's standard output.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.61.3.7"></a><h3>stderr-to-dev-null</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_STDERR_TO_DEV_NULL</code></span></em></p>
- <p>the child's standard error will be discarded.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.61.3.8"></a><h3>child-inherits-stdin</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_CHILD_INHERITS_STDIN</code></span></em></p>
- <p>the child will inherit the parent's standard
- input (by default, the child's standard input is attached to <code class="code">/dev/null</code>).</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.61.3.9"></a><h3>file-and-argv-zero</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_FILE_AND_ARGV_ZERO</code></span></em></p>
- <p>the first element of <code class="code">argv</code> is the file to
- execute, while the remaining elements are the actual argument vector
- to pass to the file. Normally <code class="function">g_spawn_async_with_pipes()</code> uses <code class="code">argv[0]</code>
- as the file to execute, and passes all of <code class="code">argv</code> to the child.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.61.3.10"></a><h3>search-path-from-envp</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_SEARCH_PATH_FROM_ENVP</code></span></em></p>
- <p>if <code class="code">argv[0]</code> is not an absolute path,
- it will be looked for in the <code class="code">PATH</code> from the passed child environment.
- Since: 2.34</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.61.3.11"></a><h3>cloexec-pipes</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_SPAWN_CLOEXEC_PIPES</code></span></em></p>
- <p>create all pipes with the <code class="code">O_CLOEXEC</code> flag set.
- Since: 2.40</p>
- </div>
- </div>
- </div>
- <div class="footer">
- <hr>Generated by GTK-Doc V1.33.1</div>
- </body>
- </html>
|