Am 13.07.2017 um 13:32 schrieb Arturo Borrero Gonzalez: > On 13 July 2017 at 13:19, Michael Biebl <bi...@debian.org> wrote: >> >> systemd-modules-load uses libkmod/kmod_module_probe_insert_module() to >> load the modules: >> https://github.com/systemd/systemd/blob/master/src/modules-load/modules-load.c >> >> >> I.e. it's not doing something fancy here and uses the same functionality >> as modprobe/insmod does. > > That code uses kmod_module_probe_insert_module(mod, probe_flags, NULL, > NULL, NULL, NULL) [0], > and nothe the NULL argument, because in the libkmod source [1] I just > found that: > > [...] > * If @run_install is NULL, this function will fork and exec by calling > [...] > > So the code is forking, and thus the race condition may happen here.
Well, it uses system() to execute the command which is supposed to only return once the forked command has finished. So I don't see the race condition. Can you elaborate? -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature