Skip to content

Instantly share code, notes, and snippets.

@smooker
Created December 31, 2024 19:38
Show Gist options
  • Save smooker/9d5c19c1dcc90978ec9e1f1eb431f98b to your computer and use it in GitHub Desktop.
Save smooker/9d5c19c1dcc90978ec9e1f1eb431f98b to your computer and use it in GitHub Desktop.
diff --git a/net/slirp.c b/net/slirp.c
index 85ae430..0f7c1aa 100644
--- a/net/slirp.c
+++ b/net/slirp.c
@@ -1004,8 +1004,8 @@ static int slirp_smb(SlirpState* s, const char *exported_dir,
);
fclose(f);
- smb_cmdline = g_strdup_printf("%s -l %s -s %s",
- CONFIG_SMBD_COMMAND, s->smb_dir, smb_conf);
+ smb_cmdline = g_strdup_printf("%s -l %s -s %s %s",
+ CONFIG_SMBD_COMMAND, s->smb_dir, smb_conf, "--no-process-group");
g_free(smb_conf);
if (slirp_add_exec(s->slirp, smb_cmdline, &vserver_addr, 139) < 0 ||
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment