blob: b2d4007b859484038281aa6f79de48fe5d7ecee2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- dropbear-2020.81.orig/svr-main.c 2020-10-29 14:35:50.000000000 +0100
+++ dropbear-2020.81/svr-main.c 2020-11-04 05:04:33.736369225 +0100
@@ -278,8 +278,12 @@ static void main_noinetd() {
#if DEBUG_NOFORK
fork_ret = 0;
#else
+#if DROPBEAR_VFORK
+ fork_ret = vfork();
+#else
fork_ret = fork();
#endif
+#endif
if (fork_ret < 0) {
dropbear_log(LOG_WARNING, "Error forking: %s", strerror(errno));
goto out;
|