On today's systems fork() will hardly fail, thus removed the fork retry loops.
[mmh] / sbr / context_save.c
index 44542b5..1a381db 100644 (file)
@@ -68,16 +68,12 @@ context_save(void)
 static int
 m_chkids(void)
 {
-       int i;
        pid_t pid;
 
        if (getuid() == geteuid())
                return (-1);
 
-       for (i = 0; (pid = fork()) == -1 && i < 5; i++)
-               sleep(5);
-
-       switch (pid) {
+       switch (pid = fork()) {
        case -1:
                break;