diff options
author | Damien Miller <djm@mindrot.org> | 2006-08-31 03:24:41 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-08-31 03:24:41 +1000 |
commit | 1b06dc30ad4692ec76c476d130ba7366f7ebfef2 (patch) | |
tree | 85a3f1df0e15d7da1939df14a43a35dc4380a001 /sshd.c | |
parent | 26d4e19caa3013f57dc3c1462847eceaac6a1d7d (diff) |
- (djm) [CREDITS LICENCE Makefile.in auth.c configure.ac includes.h ]
[platform.c platform.h sshd.c openbsd-compat/Makefile.in]
[openbsd-compat/openbsd-compat.h openbsd-compat/port-solaris.c]
[openbsd-compat/port-solaris.h] Add support for Solaris process
contracts, enabled with --use-solaris-contracts. Patch from Chad
Mynhier, tweaked by dtucker@ and myself; ok dtucker@
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1154,6 +1154,7 @@ server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s) | |||
1154 | * the child process the connection. The | 1154 | * the child process the connection. The |
1155 | * parent continues listening. | 1155 | * parent continues listening. |
1156 | */ | 1156 | */ |
1157 | platform_pre_fork(); | ||
1157 | if ((pid = fork()) == 0) { | 1158 | if ((pid = fork()) == 0) { |
1158 | /* | 1159 | /* |
1159 | * Child. Close the listening and | 1160 | * Child. Close the listening and |
@@ -1163,6 +1164,7 @@ server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s) | |||
1163 | * We break out of the loop to handle | 1164 | * We break out of the loop to handle |
1164 | * the connection. | 1165 | * the connection. |
1165 | */ | 1166 | */ |
1167 | platform_post_fork_child(); | ||
1166 | startup_pipe = startup_p[1]; | 1168 | startup_pipe = startup_p[1]; |
1167 | close_startup_pipes(); | 1169 | close_startup_pipes(); |
1168 | close_listen_socks(); | 1170 | close_listen_socks(); |
@@ -1178,6 +1180,7 @@ server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s) | |||
1178 | } | 1180 | } |
1179 | 1181 | ||
1180 | /* Parent. Stay in the loop. */ | 1182 | /* Parent. Stay in the loop. */ |
1183 | platform_post_fork_parent(pid); | ||
1181 | if (pid < 0) | 1184 | if (pid < 0) |
1182 | error("fork: %.100s", strerror(errno)); | 1185 | error("fork: %.100s", strerror(errno)); |
1183 | else | 1186 | else |