Tell FUSE to run single-threaded, since GRUB code is not thread-safe.

Fixes Ubuntu bug #756297.
This commit is contained in:
Colin Watson 2011-04-14 20:27:27 +01:00
parent 4ac93e6c4f
commit 2a861f38a7

View file

@ -450,9 +450,12 @@ main (int argc, char *argv[])
grub_util_init_nls ();
fuse_args = xrealloc (fuse_args, (fuse_argc + 1) * sizeof (fuse_args[0]));
fuse_args = xrealloc (fuse_args, (fuse_argc + 2) * sizeof (fuse_args[0]));
fuse_args[fuse_argc] = xstrdup (argv[0]);
fuse_argc++;
/* Run single-threaded. */
fuse_args[fuse_argc] = xstrdup ("-s");
fuse_argc++;
argp_parse (&argp, argc, argv, 0, 0, 0);