run: Don't kill children twice.
[dss.git] / file.c
diff --git a/file.c b/file.c
index 84944082960055e272e942aa40a760b5709eb875..cd1e43ef7c32c835266bdd3ae73ac34f614371a0 100644 (file)
--- a/file.c
+++ b/file.c
@@ -1,8 +1,4 @@
-/*
- * Copyright (C) 2006-2010 Andre Noll <maan@tuebingen.mpg.de>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
+/* SPDX-License-Identifier: GPL-2.0 */
 
 #include <stdio.h>
 #include <unistd.h>
@@ -69,19 +65,6 @@ out:
        closedir(dir);
        return ret;
 }
-/**
- * Wrapper for chdir(2).
- *
- * \param path The specified directory.
- *
- * \return Standard.
- */
-int dss_chdir(const char *path)
-{
-       if (chdir(path) >= 0)
-               return 1;
-       return -ERRNO_TO_DSS_ERROR(errno);
-}
 
 /**
  * Set a file descriptor to non-blocking mode.