Welcome to mirror list, hosted at ThFree Co, Russian Federation.

__run_pidns.sh « ns_ext « others « test - github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50cdb6b760c62b4a25b162cd6b623037ba1cf59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

set -e

status_fd=$1

exec 0</dev/null
exec 2>/dev/null
exec 1>/dev/null

# Sending our real pid to run_pidns.sh over pipe

exec {fd}</proc/self/status
pid=$(cat <&$fd | grep '^Pid:' | awk '{print $2}')
exec {fd}>&-
echo $pid >&$status_fd
exec {status_fd}>&-

while :; do
	sleep 10000
done