Commit 3a88f69
committed
libct/nsenter: sprinkle missing sane_kill
Add a few missing sane_kill calls where they make sense.
Remove one useless sane_kill of stage2_pid, as during SYNC_USERMAP stage2
is not yet started. It is harmless yet it makes the code slightly harder
to read.
Set the child pid to -1 upon receiving SYNC_CHILD_FINISH
to minimize the chances of killing an unrelated process.
When a child sends SYNC_CHILD_FINISH it is about to exit
(although theoretically it could be stuck during debug logging).
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>1 parent a82c14b commit 3a88f69
1 file changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
854 | | - | |
| 854 | + | |
| 855 | + | |
855 | 856 | | |
| 857 | + | |
856 | 858 | | |
857 | 859 | | |
858 | 860 | | |
| |||
863 | 865 | | |
864 | 866 | | |
865 | 867 | | |
866 | | - | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
867 | 871 | | |
| 872 | + | |
868 | 873 | | |
869 | 874 | | |
870 | 875 | | |
| |||
890 | 895 | | |
891 | 896 | | |
892 | 897 | | |
893 | | - | |
894 | 898 | | |
895 | 899 | | |
896 | 900 | | |
| |||
941 | 945 | | |
942 | 946 | | |
943 | 947 | | |
| 948 | + | |
944 | 949 | | |
945 | 950 | | |
| 951 | + | |
| 952 | + | |
946 | 953 | | |
947 | 954 | | |
948 | 955 | | |
949 | 956 | | |
950 | 957 | | |
951 | 958 | | |
952 | 959 | | |
953 | | - | |
| 960 | + | |
| 961 | + | |
954 | 962 | | |
| 963 | + | |
955 | 964 | | |
956 | 965 | | |
957 | 966 | | |
| |||
965 | 974 | | |
966 | 975 | | |
967 | 976 | | |
968 | | - | |
| 977 | + | |
| 978 | + | |
969 | 979 | | |
| 980 | + | |
970 | 981 | | |
971 | 982 | | |
972 | 983 | | |
973 | 984 | | |
974 | 985 | | |
| 986 | + | |
975 | 987 | | |
976 | 988 | | |
| 989 | + | |
977 | 990 | | |
978 | 991 | | |
979 | 992 | | |
| |||
0 commit comments