blob: 7ffb366574e056357b8bdccd980a8e2b96a99e33 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace vespalib {
/**
* to be used between fork and exec
*
* Calling this function will close all open file descriptors except
* stdin(0), stdout(1) and stderr(2)
**/
void close_all_files();
} // namespace vespalib
|