-static void run_udev(const char *subsystem)
-{
- char *const argv[] = { "udev", (char *)subsystem, NULL };
- pid_t pid;
-
- pid = fork();
- switch (pid) {
- case 0:
- /* child */
- execv(UDEV_BIN, argv);
- dbg("exec of child failed");
- _exit(1);
- break;
- case -1:
- dbg("fork of child failed");
- break;
- default:
- waitpid(pid, NULL, 0);
- }
-}
-