]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.c
Get rid of E_WAITPID.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index a3b8d8839b633e822c17d8307e303a58806e0c12..17557e5eaa789831f136e758a3a31fe5903e7271 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -537,7 +537,7 @@ static int make_database_dir(void)
        }
        PARA_INFO_LOG("afs_database dir %s\n", database_dir);
        ret = para_mkdir(database_dir, 0777);
-       if (ret >= 0 || ret == -E_EXIST)
+       if (ret >= 0 || is_errno(-ret, EEXIST))
                return 1;
        free(database_dir);
        database_dir = NULL;
@@ -622,7 +622,7 @@ static void signal_post_select(struct sched *s, struct task *t)
                return;
        }
        PARA_NOTICE_LOG("caught signal %d\n", st->signum);
-       t->ret = -E_SIGNAL_CAUGHT;
+       t->ret = -E_AFS_SIGNAL;
        unregister_tasks();
 }