]> git.e2factory.org Git - e2factory.git/commitdiff
le2lib: stop calling fflush in the fork wrapper
authorTobias Ulmer <tu@emlix.com>
Mon, 11 Feb 2019 17:56:05 +0000 (18:56 +0100)
committerTobias Ulmer <tu@emlix.com>
Mon, 11 Feb 2019 17:56:05 +0000 (18:56 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/le2lib.c

index 2b39536717faef8240995975d3d1f6e1d1c1e4e7..3a86b42ae4ee966745d5a6f67659340dee4813f9 100644 (file)
@@ -45,13 +45,6 @@ lua_fork(lua_State *lua)
 {
        int rc;
 
-       rc = fflush(NULL);
-       if (rc == EOF) {
-               lua_pushboolean(lua, 0);
-               lua_pushstring(lua, strerror(errno));
-               return 2;
-       }
-
        rc = fork();
        if (rc < 0) {
                lua_pushboolean(lua, 0);