aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/process/close_all_files.h
blob: 2c18b9b8c7d52beb7cd4f60438eb015def21c768 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Vespa.ai. 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