mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-16 10:50:43 +03:00
trivial-httpd: Close stdout & stdin so $() can capture output when daemonized
Will be used by tests.
This commit is contained in:
parent
4f127b2d7d
commit
3dc6cedba5
@ -334,6 +334,9 @@ ostree_builtin_trivial_httpd (int argc, char **argv, GFile *repo_path, GCancella
|
||||
_exit (0);
|
||||
}
|
||||
/* Child, continue */
|
||||
/* Daemonising: close stdout/stderr so $() et al work on us */
|
||||
fclose (stdout);
|
||||
fclose (stdin);
|
||||
}
|
||||
|
||||
app->running = TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user